/* LOGIN CSS - Design Profissional */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Background - Otimizado para TDAH */
.login-background {
    min-height: 100vh;
    background: linear-gradient(135deg, #4a90e2 0%, #5c7cfa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.5;
}

/* Container Principal */
.login-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
}

/* Container para página de registro */
.register-container {
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 2rem;
    }
}

/* Seção da Brand - Otimizada para TDAH */
.brand-section {
    text-align: left;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s ease;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-section.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.logo {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo i {
    font-size: 3rem;
    color: #ffffff;
}

.brand-section h1 {
    font-size: 4rem;
    color: white;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.brand-description {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #ffffff;
    margin-top: 2rem;
}

.brand-description h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.brand-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.features-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.features-list li i {
    color: #90EE90;
    width: 16px;
    text-align: center;
}

/* Card de Registro Wide */
.register-card-wide {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 700px;
    animation: slideUp 0.6s ease-out;
}

/* Header centralizado */
.card-header-center {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header-center .logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2, #5c7cfa);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.card-header-center h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.card-header-center h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.card-header-center p {
    color: #718096;
    font-size: 1rem;
}
.login-card {
    background: #f8f9fb;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #e6e8f0;
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.4s ease;
}

.login-card.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Header do Card */
.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.6rem;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.card-header p {
    color: #718096;
    font-size: 0.9rem;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.alert.error {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert.success {
    background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
    color: #2f855a;
    border: 1px solid #68d391;
}

.alert.info {
    background: linear-gradient(135deg, #bee3f8, #90cdf4);
    color: #2c5282;
    border: 1px solid #63b3ed;
}

/* Formulário */
.login-form {
    margin-bottom: 1.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.form-group label i {
    color: #667eea;
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d9e6;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #2d3748;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background: #ffffff;
}

.form-group input::placeholder {
    color: #8892b0;
}

/* Input de Senha */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #667eea;
}

/* Opções do Formulário */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Checkbox Customizado */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #4a5568;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-password {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #357abd;
    text-decoration: underline;
}

/* Botões - Cores suaves para TDAH */
.btn-login {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #4a90e2, #5c7cfa);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.25);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
    background: linear-gradient(135deg, #5c7cfa, #4a90e2);
}

.btn-login:active {
    transform: translateY(0);
}

/* Divisor */
.divider {
    text-align: center;
    margin: 1.2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    color: #718096;
    padding: 0 1rem;
    font-size: 0.9rem;
}

/* Link de Registro */
.register-link {
    text-align: center;
}

.register-link p {
    color: #718096;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-register:hover {
    background: rgba(74, 144, 226, 0.1);
    color: #357abd;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    opacity: 0.8;
}

.login-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Responsividade */
@media (max-width: 968px) {
    .brand-section {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .brand-section h1 {
        font-size: 3rem;
    }
    
    .logo {
        margin: 0 auto 2rem;
    }
}

@media (max-width: 768px) {
    .login-background {
        padding: 20px 15px;
    }
    
    .brand-section h1 {
        font-size: 2.5rem;
    }
    
    .brand-subtitle {
        font-size: 1.1rem;
    }
    
    .features-list {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .login-background {
        padding: 15px 10px;
    }
    
    .login-card {
        padding: 1.5rem 1.2rem;
        border-radius: 15px;
        margin: 0 auto;
    }
    
    .brand-section h1 {
        font-size: 2rem;
    }
    
    .brand-subtitle {
        font-size: 0.9rem;
    }
    
    .card-header {
        margin-bottom: 1.2rem;
    }
    
    .card-header h2 {
        font-size: 1.4rem;
    }
    
    .card-header p {
        font-size: 0.85rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
        margin-bottom: 1.2rem;
    }
    
    .checkbox-container {
        font-size: 0.8rem;
    }
    
    .divider {
        margin: 1rem 0;
    }
}

@media (max-width: 320px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .brand-section {
        margin-bottom: 1.5rem;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
}

/* Animações adicionais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dica de senha */
.password-hint {
    color: #718096;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: block;
}

/* Estados de loading */
.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-login.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: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ajustes para página de registro */
.register-page .login-card {
    max-height: 90vh;
    overflow-y: auto;
}

.register-page .form-group:last-of-type {
    margin-bottom: 1rem;
}

/* Melhorias visuais para validação */
.form-group input.invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-group input.valid {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

/* === CSS ESPECÍFICO PARA REGISTRO EM DUAS COLUNAS === */

/* Card de Registro Wide */
.register-card-wide {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 700px;
    animation: slideUp 0.6s ease-out;
}

/* Header centralizado */
.card-header-center {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header-center .logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2, #5c7cfa);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.card-header-center h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.card-header-center h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.card-header-center p {
    color: #718096;
    font-size: 1rem;
}

/* Formulário em Grid */
.register-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Footer do registro */
.register-footer {
    text-align: center;
    margin-top: 2rem;
}

.register-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsivo para registro */
@media (max-width: 768px) {
    .register-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .register-card-wide {
        padding: 2rem;
        margin: 1rem;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-header-center h1 {
        font-size: 2rem;
    }
    
    .card-header-center h2 {
        font-size: 1.3rem;
    }
}

/* === CSS ESPECÍFICO PARA LOGIN CENTRALIZADO === */

/* Container centralizado para login */
.login-container-centered {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Card de Login Centralizado */
.login-card-centered {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.6s ease-out;
}

/* Footer centralizado */
.login-footer-centered {
    text-align: center;
    margin-top: 2rem;
}

.login-footer-centered p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsivo para login centralizado */
@media (max-width: 768px) {
    .login-container-centered {
        padding: 1rem;
        max-width: 100%;
    }
    
    .login-card-centered {
        padding: 2rem;
        margin: 1rem;
        max-width: 100%;
    }
}