/* === LOGIN PAGE STYLES === */

* {
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* === LAYOUT PRINCIPAL === */

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* === PAINEL BRANDING (ESQUERDO) === */

.login-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

/* Padrão decorativo */
.login-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 500px;
}

.branding-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.branding-logo svg {
    width: 60px;
    height: 60px;
    stroke: white;
}

.branding-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.branding-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    font-weight: 500;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-item svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* === PAINEL FORMULÁRIO (DIREITO) === */

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
}

.login-form-container {
    width: 100%;
    max-width: 480px;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1rem;
    color: #6b7280;
}

/* === ALERTAS === */

.alert-error,
.alert-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

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

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

.alert-error svg,
.alert-success svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* === FORMULÁRIO === */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    stroke: #9ca3af;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

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

/* Toggle Senha */
.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.toggle-password:hover {
    opacity: 0.7;
}

.eye-icon {
    width: 20px;
    height: 20px;
    stroke: #9ca3af;
}

/* === OPÇÕES DO FORM === */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #4b5563;
}

.link-recovery {
    font-size: 0.9rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-recovery:hover {
    color: #764ba2;
}

/* === BOTÃO SUBMIT === */

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

/* === FOOTER === */

.form-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* === RESPONSIVIDADE === */

@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }
    
    .login-branding {
        display: none;
    }
    
    .login-form-panel {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .login-form-container {
        background: white;
        padding: 2.5rem;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 640px) {
    .login-form-panel {
        padding: 1.5rem;
    }
    
    .login-form-container {
        padding: 2rem 1.5rem;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
    
    .branding-title {
        font-size: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .login-form-panel {
        padding: 1rem;
    }
    
    .login-form-container {
        padding: 1.5rem 1rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-input {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem 0.75rem 2.75rem;
    }
    
    .btn-submit {
        padding: 0.875rem;
        font-size: 1rem;
    }
}