/* ══════════════════════════════════════════════════════
   auth-styles.css  –  Auth Panels in Hero Glass Card
════════════════════════════════════════════════════════ */

/* ── Logged-in state ── */
.auth-user-email {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin: 8px 0 16px;
    text-align: center;
    font-weight: 500;
}

.btn-logout {
    display: block;
    width: 100%;
    padding: 14px 22px;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1.5px solid rgba(239, 68, 68, 0.35);
    border-radius: 50px;
    font-family: 'Prompt', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    margin-top: 0;
}
.btn-logout:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.55);
    color: #fecaca;
    transform: translateY(-2px);
}

/* ── Error / success banners ── */
.auth-error {
    background: rgba(192,57,43,0.15);
    border: 1.5px solid rgba(192,57,43,0.5);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.84rem;
    color: #fca5a5;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}
.auth-success {
    background: rgba(39,174,96,0.15);
    border: 1.5px solid rgba(39,174,96,0.5);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.84rem;
    color: #86efac;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}
.reset-instruction {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    margin: 4px 0 12px;
}

/* ── Input fields ── */
#authPanelLogin .modal-field,
#authPanelRegister .modal-field,
#authPanelReset .modal-field {
    margin-bottom: 11px;
}

#authPanelLogin .modal-field input,
#authPanelRegister .modal-field input,
#authPanelReset .modal-field input {
    width: 100%;
    padding: 13px 22px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: 'Sarabun', sans-serif;
    font-weight: 400;
    color: #fff;
    background: rgba(255,255,255,0.14);
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
#authPanelLogin .modal-field input::placeholder,
#authPanelRegister .modal-field input::placeholder,
#authPanelReset .modal-field input::placeholder {
    color: rgba(255,255,255,0.45);
}
#authPanelLogin .modal-field input:focus,
#authPanelRegister .modal-field input:focus,
#authPanelReset .modal-field input:focus {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.10);
}

/* ── Password toggle ── */
.pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pw-wrap input {
    padding-right: 48px !important;
}
.pw-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    /* Override nuclear rule for this small button */
    width: auto !important;
    border-radius: 0 !important;
    display: inline !important;
}
.pw-toggle:hover {
    color: rgba(255,255,255,0.9);
}

/* ── PRIMARY submit button — solid white pill ── */
.btn-auth-submit {
    display: block;
    width: 100%;
    padding: 14px 22px;
    background: #ffffff;
    border: none;
    border-radius: 50px;
    color: #0d1f4e;
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    letter-spacing: 0.04em;
    margin: 14px 0 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 28px rgba(255,255,255,0.25), 0 2px 8px rgba(0,0,0,0.22);
}
.btn-auth-submit:hover {
    background: rgba(255,255,255,0.88);
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(255,255,255,0.32);
}

/* ── GHOST pill — switch panel (register / back to login) ── */
.btn-switch {
    display: block;
    width: 100%;
    padding: 13px 22px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.28);
    border-radius: 50px;
    color: rgba(255,255,255,0.80);
    font-family: 'Prompt', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: all 0.2s;
}
.btn-switch:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.50);
    color: #fff;
}

/* ── Forgot password link ── */
.glass-card-bottom {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
    color: rgba(255,255,255,0.55);
}

.glass-card-bottom .bottom-separator {
    margin: 0 8px;
    color: rgba(255,255,255,0.3);
    font-weight: 300;
}

.glass-card-bottom a {
    color: rgba(180,220,255,0.85);
    text-decoration: none;
    transition: color 0.15s;
}
.glass-card-bottom a:hover {
    color: #fff;
}

/* ── Panel title ── */
.glass-card-top {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
    font-family: 'Prompt', sans-serif;
}

/* ── Hide หรือ dividers everywhere ── */
.glass-divider { display: none !important; }

@media (max-width: 768px) {
    #authPanelLogin .modal-field input,
    #authPanelRegister .modal-field input,
    #authPanelReset .modal-field input {
        padding: 9px 16px;
        font-size: 0.82rem;
    }
    #authPanelLogin .modal-field,
    #authPanelRegister .modal-field,
    #authPanelReset .modal-field {
        margin-bottom: 7px;
    }
    .btn-auth-submit {
        padding: 10px 18px;
        font-size: 0.85rem;
        margin: 8px 0 6px;
    }
    .btn-switch {
        padding: 9px 18px;
        font-size: 0.82rem;
    }
    .btn-logout {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    .glass-card-top {
        font-size: 0.88rem;
        margin-bottom: 10px;
    }
    .glass-card-bottom {
        font-size: 0.78rem;
        margin-top: 7px;
    }
    .reset-instruction {
        font-size: 0.74rem;
        margin: 2px 0 8px;
    }
    .auth-error,
    .auth-success {
        padding: 7px 12px;
        font-size: 0.78rem;
        margin-bottom: 8px;
    }
    .auth-user-email {
        font-size: 0.8rem;
        margin: 4px 0 10px;
    }

    .btn-go-form {
        padding: 10px 18px;
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
}

/* ── Register/Edit Form button ── */
.btn-go-form {
    display: block;
    width: 100%;
    padding: 14px 22px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    border-radius: 50px;
    font-family: 'Prompt', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.btn-go-form:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.6);
    color: #93c5fd;
    transform: translateY(-2px);
}