/* ─── Auth Modal ─────────────────────────────────────── */
.auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-overlay.open {
    display: flex;
    animation: authOverlayIn 0.2s ease;
}

@keyframes authOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Card ── */
.auth-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
    width: 100%;
    max-width: 400px;
    padding: 36px 32px 32px;
    position: relative;
    animation: authCardIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Close ── */
.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #666;
    transition: all 0.2s;
}

.auth-close:hover {
    background: #eee;
    color: #111;
}

/* ── Logo / Brand ── */
.auth-brand {
    text-align: center;
    margin-bottom: 22px;
}

.auth-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f0f0f;
    letter-spacing: 0.04em;
}

.auth-brand-name span {
    color: #f52008;
}

/* ── Tabs ── */
.auth-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    padding: 9px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
}

.auth-tab.active {
    background: #fff;
    color: #0f0f0f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── Google Button ── */
.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    margin-bottom: 18px;
}

.auth-google-btn:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    background: #fafafa;
}

.auth-google-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #bbb;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ebebeb;
}

/* ── Form ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-field {
    position: relative;
}

.auth-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 5px;
    letter-spacing: 0.03em;
}

.auth-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 9px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #111;
    background: #fafafa;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-field input:focus {
    outline: none;
    border-color: #f52008;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245, 32, 8, 0.07);
}

/* ── Forgot ── */
.auth-forgot {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 600;
    color: #f52008;
    text-decoration: none;
    cursor: pointer;
    margin-top: -4px;
}

.auth-forgot:hover { text-decoration: underline; }

/* ── Submit ── */
.auth-submit {
    width: 100%;
    padding: 12px;
    background: #f52008;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.22s ease;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(245, 32, 8, 0.2);
}

.auth-submit:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 32, 8, 0.3);
}

/* ── Terms ── */
.auth-terms {
    font-size: 0.72rem;
    color: #888;
    text-align: center;
    line-height: 1.5;
    margin-top: 6px;
}

.auth-terms a {
    color: #f52008;
    text-decoration: none;
}

.auth-terms a:hover { text-decoration: underline; }

/* ── Panel visibility ── */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px 24px;
        border-radius: 14px;
    }
}
