/* =========================
   LOGIN NEUTRO (sin branding)
   ========================= */

:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --ring: rgba(2, 132, 199, .22);
    /* azul suave neutro */
    --btn: #0f172a;
    --btn-hover: #111827;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: radial-gradient(1200px 600px at 50% -10%, #ffffff 0%, var(--bg) 55%, var(--bg) 100%);
    color: var(--text);
}

/* layout */
.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
}

/* no logo en neutro */
.auth-header {
    display: none;
}

.auth-logo {
    display: none;
}

/* card */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 22px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
}

.card-title {
    margin: 0 0 14px 0;
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -.02em;
    text-align: center;
}

/* form */
.login-form {
    display: grid;
    gap: 12px;
}

.login-form input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    outline: none;
    font-size: 0.98rem;
    color: var(--text);
    transition: box-shadow .15s ease, border-color .15s ease;
}

.login-form input::placeholder {
    color: #94a3b8;
}

.login-form input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px var(--ring);
}

/* password wrap */
#passwordWrap {
    display: grid;
    gap: 8px;
}

.toggle-psw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--muted);
}

/* asegúrate que el input de password deje espacio para el ojo */
#password {
    padding-right: 44px;
}

/* link */
.forgot-password a {
    color: #334155;
    text-decoration: none;
    font-size: 0.92rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* button */
#btnSubmit {
    height: 44px;
    border-radius: 12px;
    border: 0;
    background: var(--btn);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
}

#btnSubmit:hover {
    background: var(--btn-hover);
}

#btnSubmit:active {
    transform: translateY(1px);
}

#btnSubmit:disabled {
    opacity: .75;
    cursor: not-allowed;
}

/* hint text */
.hint {
    margin: 4px 0 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
    line-height: 1.35;
}

/* helpers */
.hidden {
    display: none !important;
}

/* spinner (si ya lo tienes en otro css, puedes borrar esto) */
.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Transición suave al cambiar de tema */
.auth {
    transition: opacity .25s ease, transform .18s ease;
}

.auth.theme-switching {
    opacity: 0;
    transform: translateY(2px);
}