/* ============================================
   AUTH UI — Modern Login Gate Design
   ============================================ */

/* ---- Login Gate Container ---- */
.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #050506;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---- Animated Background Grid ---- */
.auth-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ---- Background Gradient ---- */
.auth-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(244, 208, 63, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* ---- Main Container ---- */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    padding: 24px;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ---- Card with Glassmorphism ---- */
.auth-card {
    background: rgba(15, 15, 17, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

/* ---- Header Section ---- */
.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo {
    margin-bottom: 20px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.auth-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.auth-title {
    font-family: 'Teko', sans-serif;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.auth-subtitle {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    letter-spacing: 0.2px;
}

/* ---- Features Grid ---- */
.auth-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.auth-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03), rgba(15, 15, 17, 0.6));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.auth-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.auth-feature:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(15, 15, 17, 0.8));
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.auth-feature:hover::before {
    opacity: 1;
}

.auth-feature-icon-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(244, 208, 63, 0.15));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    color: #F4D03F;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.auth-feature:hover .auth-feature-icon-wrap {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(244, 208, 63, 0.2));
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.auth-feature-icon-wrap svg {
    width: 28px;
    height: 28px;
}

.auth-feature-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-feature-content h3 {
    font-family: 'Teko', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

.auth-feature-content p {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.4;
}

/* ---- Login Button ---- */
.auth-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 4px 16px rgba(88, 101, 242, 0.3),
        0 0 0 0 rgba(88, 101, 242, 0.5);
    position: relative;
    overflow: hidden;
}

.auth-login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-login-btn:hover::before {
    opacity: 1;
}

.auth-login-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(88, 101, 242, 0.4),
        0 0 0 4px rgba(88, 101, 242, 0.15);
}

.auth-login-btn:active {
    transform: translateY(0);
}

.auth-login-icon {
    flex-shrink: 0;
}

.auth-login-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.auth-login-btn:hover .auth-login-arrow {
    transform: translateX(4px);
}

/* ---- Footer ---- */
.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-footer p {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.auth-footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-footer-link:hover {
    color: var(--accent-primary, #D4AF37);
}

.auth-footer-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: middle;
}

/* ---- Responsive Design ---- */
@media (max-width: 600px) {
    .auth-container {
        max-width: 100%;
        padding: 16px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .auth-title {
        font-size: 34px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .auth-features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .auth-login-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* ============================================
   HEADER USER INFO (Navbar)
   ============================================ */

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 16px;
}

.header-profile-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-profile-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
}

.header-card-avatar-wrap {
    position: relative;
    width: 28px;
    height: 28px;
}

.header-color-ring {
    position: absolute;
    inset: -3px;
    pointer-events: none;
}

.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.header-username {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Online Presence Avatars ---- */
.header-online {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
}

.header-online-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--bg-base);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header-online-avatar:hover {
    transform: scale(1.1);
    z-index: 10;
}

.header-online-more {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-online-more:hover {
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
    transform: scale(1.1);
}
