/* ════════════════════════════════════════════════════════════════
   shared.css — Verse Media Go
   Capa compartida. Importada por main.css.
   REPARADO: ya no depende de modern-root.css (que no existe).
   Define las variables legacy mapeadas al tema dorado de
   root-landing.css para que todas las vistas se vean como login.php.
   ════════════════════════════════════════════════════════════════ */

/* ── Variables legacy → tema dorado (root-landing.css) ────────── */
:root {
    /* Superficies */
    --surface-0: #060606;
    --surface-1: #0b0b0b;
    --surface-2: #161616;
    --surface-3: rgba(255, 255, 255, 0.03);
    --surface-4: rgba(0, 0, 0, 0.55);

    /* Color primario (dorado) */
    --primary: #f5a623;
    --primary-rgb: 245, 166, 35;
    --color-primary: #f5a623;

    /* Texto */
    --text-1: #f2f2f2;
    --text-2: #d1ccc0;
    --text-3: #9a8f7a;
    --text-4: #6a6053;

    /* Bordes */
    --border-default: rgba(255, 170, 30, 0.25);
    --border-subtle: rgba(255, 170, 30, 0.15);
    --border-strong: rgba(255, 170, 30, 0.50);
    --border-focus: #f5a623;

    /* Radios */
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    --radius-full: 999px;

    /* Espaciado */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* Tipografía */
    --font-body: "Arial Narrow", Arial, sans-serif;
    --font-display: "Arial Narrow", Arial, sans-serif;
    --text-sm: 12px;
    --text-base: 14px;
    --text-xl: 20px;
    --text-2xl: 26px;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;

    /* Motion */
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --ease-standard: ease;
    --ease-spring-md: cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Efectos de cristal dorado */
    --reflection-glass-sheen: linear-gradient(180deg, rgba(255, 200, 90, 0.10), transparent 18%);
    --reflection-inner-glow: inset 0 0 22px rgba(0, 0, 0, 0.85);
}

/* ── Contenedor ──────────────────────────────────────────────── */
html,
body {
    overflow-x: hidden;
}

.home-body,
.login-body {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg);
    color: var(--fg);
}

/* ── Fondo animado (variante .gradient-orb) ──────────────────── */
.animated-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orbFloat 16s ease-in-out infinite;
}
.gradient-orb.orb-1 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(255, 170, 30, 0.45) 0%, transparent 70%);
    top: -100px; left: -60px;
    animation-delay: 0s;
}
.gradient-orb.orb-2 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.35) 0%, transparent 70%);
    bottom: -80px; right: -40px;
    animation-delay: -5s;
}
.gradient-orb.orb-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255, 200, 90, 0.25) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -18px) scale(1.05); }
    66% { transform: translate(-14px, 12px) scale(0.96); }
}

/* ── Encabezado de formulario ────────────────────────────────── */
.form-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* ── Textarea ────────────────────────────────────────────────── */
.login-textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 170, 30, 0.25);
    background: rgba(0, 0, 0, 0.55);
    color: var(--fg);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.25s ease;
    outline: none;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
}
.login-textarea::placeholder {
    color: #6a6053;
}
.login-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 170, 30, 0.15), 0 0 18px rgba(255, 170, 30, 0.25);
    background: rgba(0, 0, 0, 0.7);
}

/* Select dentro de input-group */
.input-group select.login-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5a623' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ── Alertas ─────────────────────────────────────────────────── */
.alert {
    position: relative;
    z-index: 1;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    margin: 12px 0;
}
.alert-danger {
    background: rgba(255, 77, 77, 0.12);
    border: 1px solid rgba(255, 77, 77, 0.4);
    color: #ffb3b3;
}
.alert-info {
    background: rgba(255, 170, 30, 0.08);
    border: 1px solid rgba(255, 170, 30, 0.35);
    color: var(--gold-hi);
}

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

/* ── Divisor ─────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: rgba(255, 170, 30, 0.18);
    margin: 8px 0;
}

/* ── Links generales ─────────────────────────────────────────── */
.link a,
a.link,
.help-link {
    color: var(--gold-hi);
    text-decoration: underline;
}

/* ── Botones genéricos (.btn / .btn-primary) — tema dorado ───── */
.btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: none;
    color: #0a0a0a;
    background: linear-gradient(135deg, var(--gold-deep), var(--gold) 50%, var(--gold-hi));
    transition: all 0.3s ease;
}

.btn::before,
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.btn:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1.5px var(--gold), 0 0 28px rgba(255, 170, 30, 0.7);
}

.btn:hover::before,
.btn-primary:hover::before { transform: translateX(100%); }

.btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.1s;
}

.btn:focus-visible {
    outline: 2px solid rgba(255, 170, 30, 0.5);
    outline-offset: 3px;
}

.btn:disabled,
.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Animaciones ─────────────────────────────────────────────── */
@keyframes cardEnter {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .gradient-orb { animation: none !important; }
    .btn,
    .btn-primary,
    .login-textarea { transition: none !important; }
}
