/**
 * Authentication Styles
 * Estilos para el sistema de autenticacion
 */

/* Auth Container */
.auth-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
}

/* Login Button */
.auth-btn {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn:hover {
    background: rgba(0, 170, 255, 0.2);
    border-color: rgba(0, 170, 255, 0.6);
    transform: translateY(-2px);
}

/* User Menu */
.user-menu {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
}

.user-menu.visible {
    display: flex;
}

.user-email {
    color: #00ff88;
    font-size: 11px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-links {
    display: flex;
    gap: 8px;
}

.menu-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 10px;
    transition: all 0.3s;
}

.menu-link:hover {
    background: rgba(0, 170, 255, 0.2);
    color: #fff;
}

.logout-btn {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 10px;
    color: rgba(255, 100, 100, 0.8);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.6);
}

/* Modal Overlay */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.auth-modal-overlay.visible {
    display: flex;
}

/* Modal */
.auth-modal {
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 170, 255, 0.1);
}

/* Modal Header */
.auth-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-modal-header h2 {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 5px;
}

.auth-modal-header p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

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

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.auth-tab.active {
    color: #00aaff;
    border-bottom-color: #00aaff;
}

/* Forms */
.auth-form {
    display: none;
}

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

.auth-form input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: rgba(0, 170, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.1);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Submit Button */
.auth-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #00aaff, #00ffaa);
    border: none;
    border-radius: 8px;
    color: #000;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.3);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.auth-error,
.auth-success {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 12px;
    display: none;
}

.auth-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.auth-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.auth-error.visible,
.auth-success.visible {
    display: block;
}

/* Google Button */
.google-btn {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    color: #3c4043;
    font-size: 14px;
    font-family: 'Roboto', 'Courier New', sans-serif;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #c4c4c4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.google-btn:active {
    background: #eee;
}

.google-btn svg {
    flex-shrink: 0;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Close Button */
.auth-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-close:hover {
    color: #ff4444;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-container {
        top: 10px;
        right: 10px;
    }

    .auth-modal {
        padding: 30px 20px;
        margin: 10px;
    }

    .user-email {
        max-width: 80px;
    }
}
