/* AUTH SYSTEM STYLES */

/* Header Authentication Area */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-btn {
    padding: 8px 20px;
    background: var(--neon-cyan, #00f0ff);
    border: none;
    border-radius: 4px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 13px;
}

.auth-btn:hover {
    opacity: 0.9;
    box-shadow: 0 0 10px var(--neon-cyan, #00f0ff);
}

.auth-btn.logout {
    background: #444;
    color: #fff;
}

.auth-btn.logout:hover {
    background: #666;
    box-shadow: none;
}

.user-info {
    color: var(--neon-cyan, #00f0ff);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-info strong {
    color: var(--neon-yellow, #fcee0a);
}

/* AUTH MODAL */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.auth-modal.active {
    display: flex;
}

.auth-box {
    background: var(--card-bg, #141414);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.auth-tab:hover {
    color: #ddd;
}

.auth-tab.active {
    color: var(--neon-cyan, #00f0ff);
    border-bottom-color: var(--neon-cyan, #00f0ff);
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--neon-cyan, #00f0ff);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.auth-form button {
    width: 100%;
    padding: 14px;
    background: var(--neon-cyan, #00f0ff);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-form button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.auth-error {
    color: #ff4444;
    font-size: 13px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 4px;
    display: none;
}

/* ADMIN BADGE */
.admin-badge {
    background: linear-gradient(135deg, var(--neon-yellow, #fcee0a), #cc9900);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
    box-shadow: 0 0 5px rgba(252, 238, 10, 0.5);
}

/* PROTECTED CONTENT OVERLAY */
.protected-overlay {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
}

.protected-overlay p {
    color: var(--text-dim, #888);
    margin-bottom: 20px;
    font-size: 16px;
}

.protected-overlay .auth-btn {
    padding: 12px 30px;
    font-size: 15px;
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .auth-modal {
        align-items: flex-end; /* Show bottom sheet on mobile if desired, or center */
        padding: 0;
    }

    .auth-box {
        max-width: 100%;
        border-radius: 12px 12px 0 0; /* Rounded top corners only */
        margin: 0;
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    /* Adjust index page specific mobile styles if needed here */
}
