﻿/* ============================================================
   AUTH  —  login / register panel
   ============================================================ */

.auth-wrapper {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

    .auth-wrapper::before {
        content: "";
        position: fixed;
        inset: 0;
        background-image: url("images/regions/france.jpg");
        background-size: cover;
        background-position: center;
        filter: blur(6px);
        transform: scale(1.08);
        z-index: 0;
    }

    .auth-wrapper::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1;
    }

.auth-panel {
    position: relative;
    z-index: 2;
    width: 360px;
    background: rgba(255,255,255,0.97);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    overflow: hidden;
    animation: panelIn 0.45s cubic-bezier(0.22,1,0.36,1) both;
    font-family: 'DM Sans', sans-serif;
}

/* ── Brand ── */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1.5rem 0;
}

.auth-brand-icon {
    font-size: 1.3rem;
}

.auth-brand-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

/* ── Tabs ── */
.auth-tabs {
    display: flex;
    padding: 1rem 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 0.6rem 0;
    border: none;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

    .auth-tab.active {
        color: #1a1a1a;
        border-bottom-color: #1a1a1a;
        font-weight: 600;
    }

    .auth-tab:hover:not(.active) {
        color: #555;
    }

/* ── Form ── */
.auth-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Message ── */
.auth-message {
    font-size: 0.83rem;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

    .auth-message.error {
        background: #fef2f2;
        color: #b91c1c;
        border: 1px solid #fecaca;
    }

    .auth-message.success {
        background: #f0fdf4;
        color: #15803d;
        border: 1px solid #bbf7d0;
    }

/* ── Animation ── */
@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
