/* Tela de entrada com a mesma identidade dos temas do painel. */
html, body { min-height: 100%; }
body.pd-login-page { min-height: 100vh; margin: 0; padding: 32px; display: grid; place-items: center; background: #e9edf6; color: var(--pd-text-main); }
[data-theme="dark"] body.pd-login-page { background: #111521; }
.pd-login-shell { width: min(1100px, 100%); min-height: 670px; display: grid; grid-template-columns: 1fr 1fr; background: var(--pd-surface-card); border: 1px solid var(--pd-border); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 70px #28375616; }
[data-theme="dark"] .pd-login-shell { box-shadow: 0 24px 70px #0004; }
.pd-login-form-panel { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 38px 54px 30px; }
.pd-login-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.pd-login-brand img { display: block; width: 150px; max-width: 100%; height: auto; }
.pd-login-theme-control { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--pd-border); border-radius: 12px; background: var(--pd-input); color: var(--pd-text-main); cursor: pointer; }
.pd-login-theme-control:hover { background: var(--pd-surface-hover); }
.pd-login-theme-control:focus-visible, .pd-login-password-toggle:focus-visible { outline: 2px solid var(--pd-primary); outline-offset: 2px; }
.pd-login-content { width: 100%; max-width: 380px; margin: auto; padding: 55px 0 36px; }
.pd-login-kicker { display: inline-block; color: #466cf5; font-size: .69rem; font-weight: 700; letter-spacing: .15em; margin-bottom: 15px; }
[data-theme="dark"] .pd-login-kicker { color: #aab8ff; }
.pd-login-content h1 { color: var(--pd-text-main); font-size: clamp(2.15rem, 3vw, 2.7rem); line-height: 1.13; letter-spacing: -.045em; font-weight: 700; margin: 0 0 15px; }
.pd-login-dot { color: #466cf5; }
.pd-login-intro { max-width: 335px; color: var(--pd-text-muted); line-height: 1.6; font-size: .91rem; margin: 0 0 30px; }
.pd-login-field { margin-bottom: 18px; }
.pd-login-field label { display: block; color: var(--pd-text-main); font-size: .8rem; font-weight: 650; margin-bottom: 8px; }
.pd-login-field .form-control { height: 49px; border-radius: 9px; padding: 11px 14px; font-size: .9rem; }
.pd-login-password { position: relative; }
.pd-login-password .form-control { padding-right: 50px; }
.pd-login-password-toggle { position: absolute; right: 4px; top: 4px; height: 41px; width: 42px; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--pd-text-muted); background: transparent; cursor: pointer; }
.pd-login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 49px; padding: 10px 17px; margin-top: 25px; font-weight: 600; font-size: .9rem; }
.pd-login-submit span { font-size: 1.2rem; line-height: 1; }
.pd-login-alert { font-size: .84rem; padding: 10px 12px; border-radius: 9px; }
.pd-login-help { margin: 26px 0 0; font-size: .78rem; line-height: 1.5; color: var(--pd-text-muted); }
.pd-login-help span { color: var(--pd-text-main); }
.pd-login-footer { color: var(--pd-text-muted); font-size: .73rem; }
.pd-login-footer span { padding: 0 5px; color: #90a3d5; }
.pd-login-visual { position: relative; min-width: 0; margin: 10px 10px 10px 0; border-radius: 18px; overflow: hidden; background: #405ed2; }
.pd-login-visual img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.pd-login-visual::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, #14246dbb); pointer-events: none; }
.pd-login-visual-caption { position: absolute; z-index: 1; left: 38px; right: 38px; bottom: 34px; color: white; }
.pd-login-visual-caption span { display: block; font-size: .65rem; letter-spacing: .15em; font-weight: 700; opacity: .85; margin-bottom: 8px; }
.pd-login-visual-caption p { font-size: 1.55rem; font-weight: 650; line-height: 1.23; letter-spacing: -.02em; margin: 0; }
@media (max-width: 800px) {
    body.pd-login-page { padding: 20px; }
    .pd-login-shell { max-width: 540px; min-height: 0; grid-template-columns: 1fr; }
    .pd-login-form-panel { padding: 28px 28px 24px; }
    .pd-login-content { padding: 50px 0 36px; }
    .pd-login-visual { grid-row: 2; height: 220px; margin: 0 10px 10px; }
    .pd-login-visual img { object-position: center 48%; }
    .pd-login-visual-caption { left: 22px; right: 22px; bottom: 18px; }
    .pd-login-visual-caption p { font-size: 1.2rem; }
}
@media (max-width: 420px) {
    body.pd-login-page { padding: 12px; align-items: start; }
    .pd-login-shell { border-radius: 18px; }
    .pd-login-form-panel { padding: 23px 21px; }
    .pd-login-content { padding: 42px 0 30px; }
    .pd-login-brand img { width: 130px; }
    .pd-login-visual { height: 190px; }
}
