/* ============================================================
   SMM.chat — Auth pages (login / register / lost password)
   Mismo design system que el app shell del chat (chat.css v3.3):
   deep navy + violet accents + glassmorphism.
   ============================================================ */

:root {
    --smm-bg-deep: #0a0e1a;
    --smm-bg-surface: #111627;
    --smm-bg-elevated: #181e33;
    --smm-bg-glass: rgba(24, 30, 51, 0.82);
    --smm-border: rgba(99, 112, 165, 0.18);
    --smm-text-primary: #e8ebf7;
    --smm-text-secondary: #8b92b7;
    --smm-text-muted: #5e6487;
    --smm-accent: #6c5ce7;
    --smm-accent-glow: rgba(108, 92, 231, 0.4);
    --smm-accent2: #00cec9;
    --smm-accent3: #fd79a8;
    --smm-gradient-bg: linear-gradient(135deg, #0a0e1a 0%, #111627 50%, #141b2e 100%);
    --smm-gradient-accent: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --smm-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --smm-shadow-glow: 0 0 24px rgba(108, 92, 231, 0.18);
    --smm-radius-sm: 8px;
    --smm-radius-md: 14px;
    --smm-radius-lg: 20px;
    --smm-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body.smm-auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body.smm-auth-page {
    font-family: var(--smm-font);
    background: var(--smm-gradient-bg);
    color: var(--smm-text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
}

body.smm-auth-page #wpadminbar { display: none; }

/* Ambient glows como el shell */
body.smm-auth-page::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body.smm-auth-page::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.smm-auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--smm-bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--smm-border);
    border-radius: var(--smm-radius-lg);
    box-shadow: var(--smm-shadow-lg), var(--smm-shadow-glow);
    padding: 36px 32px 28px;
}

.smm-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    text-decoration: none;
}
.smm-auth-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--smm-gradient-accent);
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px var(--smm-accent-glow);
}
.smm-auth-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--smm-text-primary);
    letter-spacing: -0.02em;
}
.smm-auth-brand-name span { color: var(--smm-accent); }

.smm-auth-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #e8ebf7, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.smm-auth-subtitle {
    margin: 0 0 24px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--smm-text-secondary);
}

/* ── Mensajes ── */
.smm-auth-msg {
    border-radius: var(--smm-radius-sm);
    padding: 11px 14px;
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.smm-auth-msg-error {
    background: rgba(253, 121, 168, 0.09);
    border-color: rgba(253, 121, 168, 0.35);
    color: #ff9ec1;
}
.smm-auth-msg-success {
    background: rgba(0, 206, 201, 0.09);
    border-color: rgba(0, 206, 201, 0.35);
    color: #5fe6e2;
}

/* ── Formulario ── */
.smm-auth-field { margin-bottom: 16px; }
.smm-auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--smm-text-secondary);
    margin-bottom: 7px;
}
.smm-auth-input {
    width: 100%;
    background: var(--smm-bg-elevated);
    border: 1px solid var(--smm-border);
    border-radius: var(--smm-radius-sm);
    color: var(--smm-text-primary);
    font-size: 15px;
    font-family: inherit;
    padding: 12px 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.smm-auth-input:focus {
    border-color: var(--smm-accent);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.18);
}
.smm-auth-input::placeholder { color: var(--smm-text-muted); }
.smm-auth-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--smm-text-muted);
}

/* Fila recordar / olvidé */
.smm-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0 18px;
    font-size: 13px;
}
.smm-auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--smm-text-secondary);
    cursor: pointer;
    user-select: none;
}
.smm-auth-remember input {
    accent-color: var(--smm-accent);
    width: 15px;
    height: 15px;
}
.smm-auth-link {
    color: #a29bfe;
    text-decoration: none;
    transition: color .15s ease;
}
.smm-auth-link:hover { color: #c7c2ff; text-decoration: underline; }

/* ── Anti-spam ── */
.smm-auth-antispam {
    background: var(--smm-bg-elevated);
    border: 1px solid var(--smm-border);
    border-radius: var(--smm-radius-md);
    padding: 16px;
    margin-bottom: 18px;
}
.smm-auth-antispam .smm-auth-label { margin-bottom: 10px; }
.smm-auth-antispam-q {
    font-size: 16px;
    font-weight: 700;
    color: var(--smm-text-primary);
    margin: 0 0 10px;
}
.smm-auth-antispam-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.smm-auth-antispam-row .smm-auth-input { flex: 1; }
.smm-auth-refresh {
    flex: 0 0 auto;
    width: 46px;
    background: var(--smm-bg-surface);
    border: 1px solid var(--smm-border);
    border-radius: var(--smm-radius-sm);
    color: var(--smm-text-secondary);
    font-size: 17px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}
.smm-auth-refresh:hover { color: var(--smm-accent2); border-color: var(--smm-accent2); }

/* ── Botón principal ── */
.smm-auth-submit {
    width: 100%;
    background: var(--smm-gradient-accent);
    color: #fff;
    border: none;
    border-radius: var(--smm-radius-md);
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    padding: 13px 18px;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--smm-accent-glow);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.smm-auth-submit:hover { transform: translateY(-1px); filter: brightness(1.07); }
.smm-auth-submit:active { transform: translateY(0); }
.smm-auth-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Términos / pie ── */
.smm-auth-terms {
    text-align: center;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--smm-text-muted);
    margin: 0 0 16px;
}
.smm-auth-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--smm-border);
    text-align: center;
    font-size: 13.5px;
    color: var(--smm-text-secondary);
}
.smm-auth-back {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-size: 13px;
}
.smm-auth-back a { color: var(--smm-text-muted); text-decoration: none; }
.smm-auth-back a:hover { color: var(--smm-text-secondary); }

/* RTL */
html[dir="rtl"] .smm-auth-remember { flex-direction: row-reverse; }

@media (max-width: 480px) {
    .smm-auth-card { padding: 28px 20px 22px; }
    .smm-auth-title { font-size: 22px; }
}
