/* Página de Autenticação */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradiente-2);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    animation: fadeIn 0.6s ease-out;
}

.auth-card {
    background: var(--branco-secundario);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-family: var(--font-lora);
    font-size: 32px;
    color: var(--azul-fonte);
    margin-bottom: 10px;
}

.auth-header p {
    font-family: var(--font-inter);
    font-size: 16px;
    color: var(--cinza-escuro);
    margin-bottom: 0;
}

/* Formulário de Autenticação */
.auth-form {
    margin-bottom: 25px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--azul-fonte);
    font-weight: 500;
    font-family: var(--font-inter);
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-inter);
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--branco-secundario);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--azul-primario);
    box-shadow: 0 0 0 3px rgba(58, 60, 118, 0.1);
}

.auth-form input::placeholder {
    color: #cbd5e0;
}

/* Opções do Formulário */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label span {
    color: var(--preto);
    font-family: var(--font-inter);
}

.forgot-link {
    color: var(--azul-primario);
    font-weight: 500;
    font-family: var(--font-inter);
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--azul-secundario);
    text-decoration: underline;
}

/* Dicas de Senha */
.password-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--cinza-escuro);
    font-family: var(--font-inter);
    line-height: 1.4;
}

/* Botões do Formulário */
.auth-form .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 14px;
    animation: slideIn 0.4s ease-out;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer da Autenticação */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.auth-footer p {
    color: var(--preto);
    font-family: var(--font-inter);
    font-size: 14px;
    margin-bottom: 15px;
}

.auth-footer a {
    color: var(--azul-primario);
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--azul-secundario);
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--cinza-escuro);
    font-size: 14px;
    font-family: var(--font-inter);
    margin-top: 10px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--azul-primario);
}

/* Divisor Social */
.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.social-divider span {
    padding: 0 15px;
    color: var(--cinza-escuro);
    font-size: 14px;
    font-family: var(--font-inter);
}

/* Botões Sociais */
.social-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: var(--branco-secundario);
    color: var(--preto);
    font-family: var(--font-inter);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--azul-primario);
    background: rgba(58, 60, 118, 0.05);
    transform: translateY(-2px);
}

.btn-social i {
    font-size: 18px;
}

/* Loading State */
.auth-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.auth-form.loading .btn::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: var(--branco-secundario);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Checklist de Requisitos da Senha */
.password-requirements {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.password-requirements h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--azul-fonte);
    font-family: var(--font-inter);
    font-weight: 600;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-family: var(--font-inter);
    color: var(--cinza-escuro);
    transition: color 0.3s ease;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement i {
    width: 16px;
    text-align: center;
    font-size: 12px;
}

.requirement.valid {
    color: #28a745;
}

.requirement.valid i {
    color: #28a745;
}

.requirement.invalid {
    color: #dc3545;
}

.requirement.invalid i {
    color: #dc3545;
}

/* Indicador de Correspondência de Senha */
.password-match {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    font-family: var(--font-inter);
    color: #dc3545;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.password-match.visible {
    opacity: 1;
}

.password-match.valid {
    color: #28a745;
}

.password-match i {
    font-size: 12px;
}

/* Botão desabilitado estilizado */
.btn:disabled {
    background-color: #6c757d !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover {
    background-color: #6c757d !important;
    transform: none !important;
}

/* Feedback visual da força da senha */
.password-strength {
    margin-top: 10px;
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength.weak .password-strength-bar {
    background: #dc3545;
    width: 25%;
}

.password-strength.medium .password-strength-bar {
    background: #ffc107;
    width: 50%;
}

.password-strength.strong .password-strength-bar {
    background: #28a745;
    width: 75%;
}

.password-strength.very-strong .password-strength-bar {
    background: #20c997;
    width: 100%;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 25px;
    }
    
    .auth-header h1 {
        font-size: 28px;
    }
    
    .auth-logo {
        width: 80px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        max-width: 100%;
    }
    
    .auth-card {
        padding: 25px 20px;
        border-radius: 10px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-form input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}