/* 
auth.css - Solo estructura y layout
Los colores deben venir del tema activo (tema-alvart-profesional-oscuro.css)
*/

/* Estructura del contenedor principal */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease;
}

.university-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background-color: white;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.logo-red {
    font-weight: 800;
}

.university-subtitle {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    font-weight: 400;
    
}

/* Login Card */
.login-card {
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    border-width: 1px;
    border-style: solid;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease;
}

.access-instruction {
    text-align: center;
    margin-bottom: 2rem;
}

.access-instruction i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.access-instruction h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.access-instruction p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.domain-warning {
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    border-width: 1px;
    border-style: solid;
}

.domain-warning i {
    font-size: 1.2rem;
}

/* Google Button */
.google-login-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}



.google-icon {
    font-size: 1.3rem;
}

/* Help Section */
.help-section {
    text-align: center;
    padding-top: 1.5rem;
    border-top-width: 1px;
    border-top-style: solid;
}

.help-section p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.help-link {
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.help-link:hover {
    opacity: 0.8;
}

/* User Info */
.user-info {
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    border-width: 1px;
    border-style: solid;
    animation: fadeIn 0.5s ease;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.user-avatar {
    position: relative;
    width: 70px;
    height: 70px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 0%;
    object-fit: cover;
    border-width: 3px;

}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-width: 2px;
    border-style: solid;
}

.user-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
}

.user-email {
    font-size: 0.9rem;
    margin: 0;
}

.logout-btn {
    width: 100%;
    padding: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    opacity: 0.9;
}

/* Footer */
.login-footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
}

.copyright {
    margin-bottom: 0.5rem;
}

.security-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Messages */
.auth-messages {
    width: 100%;
    max-width: 420px;
    margin-bottom: 1.5rem;
}

.message {
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
    border-width: 1px;
    border-style: solid;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    } 

.loading-content p {
    font-size: 0.95rem;
}

/* Animations - Estas permanecen ya que son funcionales */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .login-card,
    .user-info {
        padding: 1.5rem;
    }
    
    .university-logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}