/* Estilos específicos para a página de login */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'figtree-regular', Arial, sans-serif;
    line-height: 1.5;
    background: var(--background-color-3);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
}

.login-container {
    max-width: 1400px;
    display: flex;
    gap: 1rem;
    min-height: 600px;
    margin: 0 auto;
    width: 100%;
    align-items: stretch;
    justify-content: center;
}

/* Lado esquerdo - Card da Imagem */
.login-image-section {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    aspect-ratio: 127 / 118;
    background-image: url('../images/frame_login.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 600px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Lado direito - Card do Formulário */
.login-form-section {
    flex: none;
    width: 550px;
    background: var(--background-color-1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    min-height: 600px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    background: var(--background-color-1);
}

/* Header do formulário */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-family: 'figtree-black', Arial, sans-serif;
    font-size: 2rem;
    color: var(--brand-escarlet-color-2);
    margin: 0 0 0.5rem 0;
}

.login-header p {
    color: var(--gray-color-5);
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* Formulário */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-color-2);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--gray-color-3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'figtree-regular', Arial, sans-serif;
    background: var(--background-color-1);
    color: var(--text-color-2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-escarlet-color-2);
    box-shadow: 0 0 0 3px rgba(224, 0, 26, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-color-4);
}

/* Campo de senha com toggle */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color-4);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--gray-color-5);
}

/* Link "Esqueceu a senha" */
.forgot-password {
    text-align: right;
    margin-bottom: 2rem;
}

.forgot-password a {
    color: var(--brand-escarlet-color-2);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--brand-escarlet-color-1);
    text-decoration: underline;
}

/* Botão de login */
.login-button {
    width: 67%;
    background: var(--brand-escarlet-color-2);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.58rem;
    font-size: 0.87rem;
    font-weight: 600;
    font-family: 'figtree-regular', Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.login-button:hover {
    background: var(--brand-escarlet-color-1);
    transform: translateY(-1px);
}

.login-button:active {
    background: var(--brand-escarlet-color-3);
    transform: translateY(0);
}

/* Divisor "ou" */
.login-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-color-3);
    z-index: 1;
}

.login-divider span {
    background: var(--background-color-1);
    color: var(--gray-color-4);
    padding: 0 1rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Botões sociais */
.social-login {
    margin-bottom: 2rem;
}

.social-btn {
    width: 67%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.58rem;
    border: 1px solid var(--gray-color-3);
    border-radius: 6px;
    background: var(--background-color-1);
    color: var(--text-color-2);
    font-family: 'figtree-regular', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 0.75rem auto;
}

.social-btn:hover {
    background: var(--gray-color-1);
    border-color: var(--gray-color-4);
    transform: translateY(-1px);
}

.social-btn:active {
    transform: translateY(0);
}

.linkedin-btn:hover {
    background: rgba(0, 119, 181, 0.05);
    border-color: #0077B5;
    color: #0077B5;
}

.google-btn:hover {
    background: rgba(66, 133, 244, 0.05);
    border-color: #4285F4;
}

.social-btn svg {
    flex-shrink: 0;
}

/* Link de cadastro */
.signup-link {
    text-align: center;
    margin-top: 1rem;
}

.signup-link p {
    color: var(--gray-color-5);
    font-size: 0.9rem;
    margin: 0;
}

.signup-link a {
    color: var(--brand-escarlet-color-2);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: var(--brand-escarlet-color-1);
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 1200px) {
    .login-image-section {
        width: auto;
        flex: 0 0 auto;
    }
    
    .login-form-section {
        width: 480px;
    }
}

@media (max-width: 968px) {
    .login-image-section {
        width: auto;
        flex: 0 0 auto;
    }
    
    .login-form-section {
        width: 420px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
        padding-top: 2rem;
    }
    
    .login-wrapper {
        padding: 1rem;
        align-items: flex-start;
    }
    
    .login-container {
        flex-direction: column;
        min-height: auto;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .login-image-section {
        flex: none;
        width: 100%;
        height: 200px;
        min-height: 200px;
    }
    
    .login-form-section {
        flex: 1;
        width: 100%;
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    
    .login-form-container {
        max-width: 100%;
    }
    
    .login-header {
        margin-bottom: 1.5rem;
    }
    
    .form-logo {
        width: 48px;
        height: 48px;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
        padding-top: 1rem;
    }
    
    .login-container {
        border-radius: 12px;
    }
    
    .login-image-section {
        width: 100%;
        height: 150px;
        min-height: 150px;
    }
    
    .login-form-section {
        width: 100%;
        padding: 1.5rem 1rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .social-btn {
        font-size: 0.73rem;
        padding: 0.5rem;
        width: 80%;
    }
}

/* Estados de erro */
.form-group.error input {
    border-color: var(--state-error-color-2);
    background-color: var(--state-error-color-1);
}

.form-group.error input:focus {
    box-shadow: 0 0 0 3px rgba(247, 90, 90, 0.1);
}

.error-message {
    color: var(--state-error-color-2);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-message::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('../images/icons/error.svg');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Estados de carregamento */
.login-button:disabled {
    background: var(--gray-color-3);
    cursor: not-allowed;
    transform: none;
}

.login-button.loading {
    position: relative;
    color: transparent;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 