/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f59e0b;
    --primary-dark: #ea580c;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

/* Container Principal */
.login-container {
    display: flex;
    min-height: 100vh;
}

/* Lado Esquerdo - Branding */
.login-branding {
    flex: 1;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-branding::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}

.branding-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.logo-large {
    margin-bottom: 40px;
}

.logo-large img {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.branding-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.branding-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    line-height: 1.6;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.feature-item .material-icons {
    color: var(--primary-color);
    font-size: 24px;
}

/* Lado Direito - Formulário */
.login-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    background: white;
}

.form-container {
    max-width: 440px;
    margin: auto;
    width: 100%;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-header p {
    font-size: 16px;
    color: var(--text-gray);
}

/* Alert Customizado */
.custom-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
    margin-bottom: 24px;
}

.custom-alert .material-icons {
    font-size: 24px;
}

.alert-content {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-gray);
    font-size: 20px;
    pointer-events: none;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.form-control::placeholder {
    color: #cbd5e1;
}

.input-wrapper.focused .input-icon {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 16px;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 20px;
    transition: color 0.3s ease;
    user-select: none;
}

.toggle-password:hover {
    color: var(--text-dark);
}

/* Botão Login */
.btn-login {
    width: 100%;
    padding: 16px 24px;
    background: #f5740bff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login .material-icons {
    font-size: 20px;
}

/* Footer do Formulário */
.form-footer {
    margin-top: 32px;
    text-align: center;
}

.forgot-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-color);
}

.forgot-link .material-icons {
    font-size: 18px;
}

/* Footer da Página */
.login-footer {
    text-align: center;
    padding-top: 40px;
}

.login-footer p {
    font-size: 13px;
    color: var(--text-gray);
}

/* Responsividade */
@media (max-width: 1024px) {
    .login-branding {
        padding: 40px;
    }
    
    .login-form-section {
        padding: 40px;
    }
    
    .branding-title {
        font-size: 28px;
    }
    
    .branding-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-branding {
        padding: 40px 24px;
        min-height: auto;
    }
    
    .login-branding::before,
    .login-branding::after {
        display: none;
    }
    
    .branding-content {
        text-align: center;
    }
    
    .logo-large img {
        max-width: 200px;
    }
    
    .branding-title {
        font-size: 24px;
    }
    
    .branding-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    .features-list {
        display: none;
    }
    
    .login-form-section {
        padding: 32px 24px;
    }
    
    .form-header h2 {
        font-size: 26px;
    }
    
    .form-header p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-branding {
        padding: 32px 20px;
    }
    
    .login-form-section {
        padding: 24px 20px;
    }
    
    .form-container {
        max-width: 100%;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .btn-login {
        padding: 14px 20px;
        font-size: 15px;
    }
}