/* AUTH STYLES - Modern, Premium, Dark Mode Compatible */

/* --- Modal Overlay --- */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- Modal Box --- */
.auth-modal {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(78, 205, 196, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.320, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-modal-overlay.active .auth-modal {
    transform: translateY(0);
}

.auth-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.auth-close-btn:hover {
    color: #fff;
}

/* --- Tabs --- */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.auth-tab.active {
    color: #fff;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4ecdc4;
    box-shadow: 0 0 10px #4ecdc4;
}

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

.auth-form.active {
    display: flex;
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-group>i:first-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    z-index: 1;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 1rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
}

/* Ensure the toggle icon doesn't inherit absolute positioning */
.password-toggle-btn>i {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    pointer-events: none;
}

.password-toggle-btn:hover {
    color: #4ecdc4;
}

.password-toggle-btn:active {
    color: #fff;
}

.auth-input-with-toggle {
    padding-right: 45px;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px 12px 45px;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

/* Select element specific styling - use native dropdown */
.auth-input-group select.auth-input {
    padding-right: 15px;
    cursor: pointer;
    /* Use platform native dropdown */
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    background: rgba(255, 255, 255, 0.08);
}

.auth-input option {
    background: #1e293b;
    color: #fff;
    padding: 10px;
}

.auth-input:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.1);
}

.auth-btn {
    background: linear-gradient(135deg, #4ecdc4, #556270);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.auth-message {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
    min-height: 20px;
}

.auth-message.error {
    color: #ff6b6b;
}

.auth-message.success {
    color: #4ecdc4;
}

/* --- Navbar User Menu --- */
.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Navbar user menu uses .user-dropdown from 07-user.css — no duplicate here */

.auth-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ecdc4, #556270);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.auth-user-name {
    color: #fff;
    font-weight: 600;
}

.auth-user-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

.auth-user-dropdown.visible {
    display: flex;
}

.auth-user-dropdown-item {
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-user-dropdown-item:hover {
    background: rgba(78, 205, 196, 0.1);
    color: #fff;
}

.auth-user-dropdown-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Gatekeeper Modal Specifics --- */
.gatekeeper-content {
    text-align: center;
}

.gatekeeper-icon {
    font-size: 3rem;
    color: #4ecdc4;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}