/* ============================================
   NR-01 — LOGIN SPLIT-SCREEN
   Mesmo padrão do contabil (paleta verde corporativa)
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body.login-page {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow: hidden;
}

.login-split {
    display: flex;
    min-height: 100vh;
}

/* Painel Esquerdo (verde com gradiente) */
.left-panel {
    flex: 1;
    background: linear-gradient(160deg, #064D32 0%, #0F8A5A 40%, #4FBF8F 100%);
    display: flex;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.left-panel::before, .left-panel::after {
    content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.04);
}
.left-panel::before { top: -120px; right: -120px; width: 400px; height: 400px; }
.left-panel::after  { bottom: -80px; left: -80px; width: 300px; height: 300px; background: rgba(255,255,255,0.03); }

.left-content { position: relative; z-index: 1; max-width: 480px; }

.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 48px; }
.brand-logo {
    background: rgba(255,255,255,0.95); border-radius: 16px;
    display: flex; align-items: center; justify-content: center; padding: 10px;
}
.brand-logo img { max-width: 160px; height: auto; object-fit: contain; display: block; }

.panel-title {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 2.4rem; line-height: 1.15; margin-bottom: 16px;
}
.panel-subtitle { font-size: 1.1rem; opacity: 0.9; margin-bottom: 40px; }

.feature-cards { display: flex; flex-direction: column; gap: 14px; }
.feature-card {
    background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px; padding: 18px 20px;
    display: flex; align-items: center; gap: 16px;
    transition: transform .2s, background .2s;
}
.feature-card:hover { background: rgba(255,255,255,0.18); transform: translateX(4px); }
.feature-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.feature-info { display: flex; flex-direction: column; }
.feature-info strong { font-size: 1rem; font-weight: 600; }
.feature-info span { font-size: 0.85rem; opacity: 0.85; }

/* Painel Direito (formulário) */
.right-panel {
    flex: 0 0 480px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.login-card { width: 100%; max-width: 380px; }

.login-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 1.8rem; color: #1a1a1a; margin-bottom: 8px;
}
.login-subtitle { color: #6E6E6E; font-size: 0.95rem; margin-bottom: 32px; }

.login-alert {
    padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem;
}
.login-alert.error { background: rgba(239, 68, 68, 0.1); color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.2); }
.login-alert.success { background: rgba(16, 185, 129, 0.1); color: #047857; border: 1px solid rgba(16, 185, 129, 0.2); }

.login-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: #2E2E2E; }

.input-wrapper {
    position: relative;
    display: flex; align-items: center;
    background: #f8f9fa; border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.input-wrapper:focus-within {
    border-color: #0F8A5A;
    box-shadow: 0 0 0 3px rgba(15, 138, 90, 0.12);
    background: #fff;
}
.input-wrapper i {
    padding: 0 14px;
    color: #6E6E6E; font-size: 0.95rem;
}
.input-wrapper input {
    flex: 1; border: none; outline: none; background: transparent;
    padding: 12px 0 12px 0; font-size: 0.95rem; color: #1a1a1a;
}
.input-wrapper input::placeholder { color: #9ca3af; }
.toggle-pw { background: none; border: none; padding: 0 14px; color: #6E6E6E; cursor: pointer; }
.toggle-pw:hover { color: #0F8A5A; }

.login-btn {
    background: linear-gradient(135deg, #0F8A5A, #4FBF8F);
    color: #fff; border: none; border-radius: 10px;
    padding: 14px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: transform .15s, box-shadow .15s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 12px rgba(15, 138, 90, 0.3);
    margin-top: 8px;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 138, 90, 0.4); }

.login-footer { text-align: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.login-footer p { color: #9ca3af; font-size: 0.8rem; }
.login-footer a { color: #0F8A5A; text-decoration: none; font-weight: 600; }

/* Responsivo */
@media (max-width: 1024px) {
    .left-panel { display: none; }
    .right-panel { flex: 1; padding: 20px; }
}
@media (max-width: 480px) {
    .login-card { max-width: 100%; }
    .login-title { font-size: 1.5rem; }
}
