/* =================================================================
   Portal Tocantins — Login Page v4
   Design: Split-screen moderno com tema Tocantins
   ================================================================= */

:root {
    --pt-primary:        #1d4ed8;
    --pt-primary-dark:   #1e40af;
    --pt-primary-light:  #3b82f6;
    --pt-primary-xlight: #eff6ff;
    --pt-sidebar-bg:     #0f172a;
    --pt-accent:         #f59e0b;
}

/* ── Reset / base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.login-page {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #f1f5f9;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Wrapper principal ────────────────────────────────────────── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ── Painel esquerdo ──────────────────────────────────────────── */
.login-panel-left {
    flex: 0 0 46%;
    max-width: 46%;
    background: linear-gradient(145deg, #0f172a 0%, #1a2f5a 45%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 3.5rem;
    color: #fff;
}

.login-panel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
}

/* Logo */
.login-logo .login-logo-img {
    max-height: 90px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}

/* Título */
.login-headline {
    font-size: 2.6rem;
    font-weight: 300;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -.02em;
}
.login-headline strong { font-weight: 800; }

.login-tagline {
    font-size: .975rem;
    opacity: .72;
    margin-top: .5rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Cards de features */
.login-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: .875rem 1.125rem;
    backdrop-filter: blur(6px);
    transition: background .2s, transform .2s;
    cursor: default;
}
.feature-item:hover {
    background: rgba(255,255,255,.12);
    transform: translateX(4px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    background: rgba(29,78,216,.6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.15);
}

.feature-title {
    font-weight: 600;
    font-size: .875rem;
    color: #f1f5f9;
}
.feature-desc {
    font-size: .78rem;
    opacity: .65;
    margin-top: .1rem;
}

/* Decoração geométrica */
.login-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
}
.deco-1 { width: 460px; height: 460px; top: -120px; right: -180px; }
.deco-2 { width: 280px; height: 280px; bottom: -60px; right: 20px; }
.deco-3 { width: 160px; height: 160px; bottom: 160px; left: 10px; }

/* ── Painel direito ───────────────────────────────────────────── */
.login-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #fff;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

/* Logo mobile */
.login-logo-img-sm,
.portal-brand-logo-sm {
    max-height: 42px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Título do formulário */
.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -.02em;
}
.login-subtitle {
    color: #64748b;
    margin-top: .3rem;
    font-size: .9rem;
    font-weight: 400;
}

/* ── Input group customizado ─────────────────────────────────── */
.login-input-group {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.login-input-group:focus-within {
    border-color: var(--pt-primary) !important;
    box-shadow: 0 0 0 3px rgba(29,78,216,.1) !important;
}
/* Remover bordas internas do input-group */
.login-input-group .input-group-text {
    border: none !important;
    background: transparent !important;
    padding: .65rem .875rem;
}
.login-input-group .form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: .95rem;
    padding: .65rem .5rem;
}
.login-input-group .form-control::placeholder { color: #94a3b8; }
.login-input-group .form-control:focus { background: transparent !important; box-shadow: none !important; }

/* Botão de toggle de senha */
.btn-toggle-pass {
    border: none !important;
    background: transparent !important;
    padding: .65rem .875rem;
    cursor: pointer;
    line-height: 1;
    color: #94a3b8;
    transition: color .15s;
}
.btn-toggle-pass:hover { color: #475569; }
.btn-toggle-pass:focus { outline: none; box-shadow: none !important; }

/* ── Botão de login ──────────────────────────────────────────── */
.login-btn {
    background: linear-gradient(135deg, var(--pt-primary) 0%, var(--pt-primary-dark) 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: .875rem 1.5rem !important;
    font-weight: 600 !important;
    font-size: .95rem !important;
    letter-spacing: .01em;
    transition: all .2s !important;
    box-shadow: 0 4px 15px rgba(29,78,216,.35) !important;
}
.login-btn:hover {
    background: linear-gradient(135deg, var(--pt-primary-light) 0%, var(--pt-primary) 100%) !important;
    box-shadow: 0 6px 20px rgba(29,78,216,.45) !important;
    transform: translateY(-1px) !important;
}
.login-btn:active { transform: translateY(0) !important; }

/* ── Checkbox form-check ─────────────────────────────────────── */
.form-check-input:checked {
    background-color: var(--pt-primary) !important;
    border-color: var(--pt-primary) !important;
}
.form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(29,78,216,.2) !important;
}

/* ── Alert override ──────────────────────────────────────────── */
.alert-danger {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: none !important;
}

/* ── Responsividade ──────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .login-panel-left { flex: 0 0 42%; max-width: 42%; padding: 2.5rem 2.5rem; }
}

@media (max-width: 991.98px) {
    .login-panel-right { padding: 2.5rem 1.75rem; }
}

@media (max-width: 575.98px) {
    .login-panel-right { padding: 2rem 1.25rem; }
    .login-title { font-size: 1.5rem; }
}
