/* 
 * Estilos da Tela de Login - Sistema de Autenticação
 * Design moderno e responsivo
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #14336f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}



.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

.back-button {
    position: absolute;
    top: -60px;
    left: 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    color: white;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
}

.logo {
    width: 100%;
    max-width: 300px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.logos-container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    height: 100%;
    flex-direction: row;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    max-width: 100px;
    max-height: 100px;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.form-input::placeholder {
    color: #9ca3af;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
}

.password-toggle:hover {
    color: #667eea;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    color: #5a67d8;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: #14336f;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 24px;
}

.login-button:hover {
    background: #0f2a5a;
}

.login-button:active {
    background: #0a1e42;
}

.divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    background: white;
    padding: 0 16px;
}

.google-button {
    width: 100%;
    padding: 16px;
    background: white;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.google-button:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.signup-link {
    color: #6b7280;
    font-size: 14px;
}

.signup-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    color: #5a67d8;
}

.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Responsividade */
@media (max-width: 480px) {
    .container {
        margin: 10px;
    }
    
    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .back-button {
        top: -50px;
    }
}

/* Animações */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: slideUp 0.6s ease-out;
}

/* Loading state */
.login-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-button.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade para as duas logos na tela de login */
@media (max-width: 480px) {
    .logo {
        max-width: 220px;
        height: 90px;
    }
    
    .logos-container {
        gap: 1.5rem;
        display: flex !important;
        flex-direction: row;
    }
    
    .logo-link {
        width: 80px;
        height: 80px;
    }
    
    .logo-img {
        max-width: 80px;
        max-height: 80px;
    }
}

@media (max-width: 360px) {
    .logo {
        max-width: 180px;
        height: 70px;
    }
    
    .logos-container {
        gap: 1rem;
        display: flex !important;
        flex-direction: row;
    }
    
    .logo-link {
        width: 70px;
        height: 70px;
    }
    
    .logo-img {
        max-width: 70px;
        max-height: 70px;
    }
}