/* =============================
   PREMIUM AUTH MODAL (2025)
============================= */

.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.auth-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Panel */
.auth-panel {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px);
    border-radius: 22px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 55px rgba(0,0,0,0.35);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: .28s ease;
    position: relative;
}

.auth-panel.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Close */
.auth-close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
    color: #475569;
}

/* Logo */
.auth-logo-wrap {
    text-align: center;
    margin-bottom: 20px;
}
.auth-logo {
    width: 165px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    position: relative;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 14px 0;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #475569;
    transition: .2s;
}

.auth-tab.active {
    color: #3b82f6;
}

.auth-tab-underline {
    position: absolute;
    bottom: 0;
    height: 3px;
    width: 50%;
    background: #3b82f6;
    border-radius: 3px;
    transition: transform .25s ease;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    transition: border .2s;
}

.auth-field input:focus {
    border-color: #3b82f6;
    outline: none;
}

.auth-error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #ef4444;
}

/* Button */
.auth-submit {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    border: none;
    color: white;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.auth-submit:hover {
    background: #1d4ed8;
}

/* Footer line */
.auth-alt {
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.auth-link {
    color: #3b82f6;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 480px) {
    .auth-panel {
        max-width: 90%;
        padding: 28px;
    }
}
