/* Authentication UI Styles */

/* Login/Signup Buttons in Header */
#login-button,
#profile-button {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    background: #6aaa64;
    color: white;
    border: 2px solid #5a8f54;
    border-radius: 6px;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: background 0.2s;
}

#login-button:hover,
#profile-button:hover {
    background: #5a8f54;
}

/* Modal Overlay */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.auth-modal.hidden {
    display: none;
}

/* Modal Content */
.auth-modal-content {
    background: #2a2a2a;
    border: 3px solid #444;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Close Button */
.auth-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
}

.auth-close:hover {
    color: #fff;
}

/* Modal Title */
.auth-modal h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 24px;
    color: #fff;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Form Groups */
.auth-form-group {
    margin-bottom: 16px;
}

.auth-form-group label {
    display: block;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 6px;
    font-family: 'Press Start 2P', monospace;
}

.auth-form-group input {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-family: 'Press Start 2P', monospace;
    box-sizing: border-box;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #6aaa64;
}

/* Buttons */
.auth-button {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: #6aaa64;
    color: white;
    border: 2px solid #5a8f54;
    border-radius: 6px;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-button:hover:not(:disabled) {
    background: #5a8f54;
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-button.secondary {
    background: #444;
    border-color: #555;
}

.auth-button.secondary:hover:not(:disabled) {
    background: #555;
}

.auth-button.google {
    background: #4285f4;
    border-color: #357ae8;
}

.auth-button.google:hover:not(:disabled) {
    background: #357ae8;
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: #666;
    font-size: 12px;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #444;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

/* Links */
.auth-link {
    display: block;
    text-align: center;
    color: #6aaa64;
    font-size: 13px;
    margin-top: 16px;
    cursor: pointer;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Error Message */
.auth-error {
    background: #d32f2f;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
    text-align: center;
}

.auth-error.hidden {
    display: none;
}

/* Info Text */
.auth-info {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 16px;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-modal-content {
        padding: 20px;
        max-width: 90%;
    }

    .auth-modal h2 {
        font-size: 20px;
    }

    #login-button,
    #profile-button {
        font-size: 12px;
        padding: 6px 12px;
    }
}
