/* ═══════════════════════════════════════════════
   ECOLOGIC — Auth Modal + Nav Account Button
   ═══════════════════════════════════════════════ */

.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 19, 15, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.auth-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal {
    background: linear-gradient(145deg, #15221B 0%, #0B130F 100%);
    border: 1px solid rgba(205, 155, 120, 0.08);
    border-radius: 28px;
    width: 420px;
    max-width: 92vw;
    padding: 3rem 2.5rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.auth-modal-backdrop.open .auth-modal {
    transform: scale(1) translateY(0);
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.3s;
}
.auth-close:hover { background: rgba(205, 155, 120, 0.12); }

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}
.auth-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.auth-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.auth-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.auth-tab.active { color: var(--color-white); }
.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-sky);
}

/* Form panels */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-field { margin-bottom: 1.25rem; }
.auth-field label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(205, 155, 120, 0.6);
    margin-bottom: 6px;
}
.auth-field input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}
.auth-field input:focus {
    border-color: rgba(205, 155, 120, 0.3);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 3px rgba(205, 155, 120, 0.05);
}
.auth-field input::placeholder { color: rgba(255,255,255,0.2); }

/* intl-tel-input alignment with auth field design */
.auth-field .iti {
    width: 100%;
}
.auth-field .iti__country-container {
    left: 8px;
}
.auth-field .iti input {
    padding-left: 54px;
}
.auth-field .iti .iti__selected-country {
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
}
.auth-field .iti .iti__country-list {
    background: #15221B;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-white);
}
.auth-field .iti .iti__country.iti__highlight {
    background: rgba(167,199,231,0.15);
}

.auth-submit {
    width: 100%;
    padding: 14px;
    background: var(--color-sky);
    color: var(--color-navy);
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}
.auth-submit:hover {
    background: var(--color-white);
    box-shadow: 0 0 20px rgba(205, 155, 120, 0.3);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.5rem 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}
.auth-divider span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-guest {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}
.auth-guest:hover {
    border-color: rgba(205, 155, 120, 0.2);
    color: var(--color-white);
}

.auth-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    padding: 10px 14px;
    color: #EF4444;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: none;
}
.auth-error.visible { display: block; }

/* ── Nav Account Button (Professional, no emoji) ── */
.nav-account {
    display: flex;
    align-items: center;
    padding: 7px 16px;
    background: rgba(205, 155, 120, 0.06);
    border: 1px solid rgba(205, 155, 120, 0.12);
    border-radius: 100px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 4px;
    white-space: nowrap;
}
.nav-account:hover {
    background: rgba(167,199,231,0.12);
    border-color: rgba(167,199,231,0.2);
}
.nav-account.logged-in {
    border-color: rgba(167,199,231,0.25);
    background: rgba(167,199,231,0.08);
}
