/* =========================================
   SECTION: DECLARATIONS / GLOBAL
   ========================================= */
:root {
    --screen-text: #00ff41;
    --monitor-bg: #111;
}

/* OPTIMIZATION: Consistent Cyberpunk Text Selection */
::selection {
    background: var(--screen-text);
    color: #000;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--monitor-bg);
    font-family: 'Press Start 2P', 'Consolas', monospace;
    color: var(--screen-text);
}

.hidden {
    display: none !important;
}

/* =========================================
   END OF SECTION: DECLARATIONS / GLOBAL
   ========================================= */


/* =========================================
   SECTION: LOGIN / LOGOUT STYLING
   ========================================= */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.auth-modal-content {
    background-color: #000;
    border: 3px solid var(--screen-text);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.auth-modal-content h2 {
    color: var(--screen-text);
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.auth-modal-content h3 {
    color: var(--screen-text);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.auth-modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-modal-content input {
    background-color: #000;
    border: 2px solid var(--screen-text);
    color: var(--screen-text);
    padding: 15px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    outline: none;
    transition: box-shadow 0.2s, background-color 0.2s;
}

/* OPTIMIZATION: Better focus feedback */
.auth-modal-content input:focus {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
    background-color: #001100;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.auth-btn {
    padding: 15px 25px;
    background-color: var(--screen-text);
    color: #000;
    border: 2px solid var(--screen-text);
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s;
    flex: 1;
    outline: none;
}

.auth-btn:hover {
    background-color: #000;
    color: var(--screen-text);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
}

/* OPTIMIZATION: Disabled state for buttons */
.auth-btn:disabled,
.social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #000 !important;
    color: var(--screen-text) !important;
    box-shadow: none !important;
}

.auth-error {
    color: #ff0000;
    font-size: 0.6rem;
    text-align: center;
    min-height: 1.5em;
    margin-top: 10px;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

/* Social Login Styles */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
    color: var(--screen-text);
    font-size: 0.6rem;
    opacity: 0.7;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--screen-text);
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    font-weight: bold;
    border: 2px solid var(--screen-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-transform: uppercase;
    outline: none;
}

.social-btn.google {
    background-color: #db4437;
    color: white;
    border-color: #db4437;
}

.social-btn.github {
    background-color: #333;
    color: white;
    border-color: #333;
}

.social-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .auth-modal-content {
        padding: 30px 20px;
    }

    .social-buttons {
        flex-direction: column;
    }
}

/* =========================================
   END OF SECTION: LOGIN / LOGOUT STYLING
   ========================================= */