/* ===== Tela de Login ===== */
html, body.login-body {
    height: 100%;
}

body.login-body {
    background-color: var(--background);
}

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

/* Lado esquerdo - Branding */
.login-branding {
    flex: 1.1;
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, #1E293B 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: var(--primary);
    opacity: 0.15;
    border-radius: 50%;
    top: -140px;
    right: -140px;
}

.login-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 48px;
    position: relative;
}
.login-brand-logo i { color: var(--primary); font-size: 30px; }

.login-branding h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    max-width: 480px;
    position: relative;
}

.login-branding .login-subtitle-brand {
    color: var(--sidebar-text);
    font-size: 16px;
    max-width: 420px;
    margin-bottom: 40px;
    position: relative;
}

.login-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}
.login-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: #E2E8F0;
}
.login-features i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Lado direito - Formulário */
.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.cadastro-card {
    max-width: 520px;
}

.cadastro-card .checkbox-option {
    align-items: flex-start;
}
.cadastro-card .checkbox-option input {
    margin-top: 3px;
}
.cadastro-card .checkbox-option a {
    color: var(--primary);
    font-weight: 500;
}

.login-card-header {
    margin-bottom: 32px;
}

.login-card-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-card-header p {
    color: var(--text-muted);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    display: flex;
}
.password-toggle:hover { color: var(--text-main); }

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -8px 0 24px;
    font-size: 13px;
}
.login-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}
.login-options a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}
.login-options a:hover { text-decoration: underline; }

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    padding: 12px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.login-divider::before, .login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-footer-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}
.login-footer-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.login-footer-text a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .login-branding { display: none; }
}
