/* Cadastro, login, recuperação e painéis */
:root {
    --auth-border: #d9e3f0;
    --auth-muted: #62718b;
    --auth-dark: #081a3a;
}

.auth-body, .dashboard-body {
    min-height: 100vh;
    margin: 0;
    background: #f1f5fb;
    color: var(--auth-dark);
}

.auth-header {
    background: #071b40;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.auth-header-inner {
    max-width: 1240px;
    min-height: 76px;
    margin: auto;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.auth-brand {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.8px;
}

.auth-brand span { font-size: 32px; color: #43d65a; vertical-align: -2px; }
.auth-brand b { color: #ffcb30; }
.auth-back { color: #e6efff; font-size: 14px; font-weight: 700; }
.auth-back:hover { color: #ffcf3a; }

.auth-main {
    width: min(1240px, calc(100% - 48px));
    min-height: calc(100vh - 125px);
    margin: 34px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    overflow: hidden;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(10, 29, 64, .10);
}

.auth-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
    background: radial-gradient(circle at 75% 72%, #204f92, #0c285b 53%, #071b40);
    color: white;
    padding: 50px 42px 24px;
}

.auth-showcase:before {
    content: '';
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    right: -100px;
    top: -150px;
    background: rgba(0, 174, 90, .16);
    filter: blur(22px);
}

.auth-showcase-copy { position: relative; z-index: 1; }
.auth-eyebrow { color: #8cddb7; font-size: 13px; letter-spacing: 4px; font-weight: 900; }
.auth-showcase h1 { max-width: 570px; margin: 12px 0 18px; font-size: clamp(31px, 3.1vw, 47px); line-height: 1.08; letter-spacing: -1.7px; }
.auth-showcase p:not(.auth-eyebrow) { max-width: 455px; color: #d4e5ff; font-size: 17px; line-height: 1.55; }
.auth-showcase img { width: 100%; max-height: 360px; object-fit: contain; mix-blend-mode: screen; mask-image: radial-gradient(ellipse at center, black 54%, transparent 79%); }

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px clamp(23px, 4.5vw, 66px);
}

.auth-panel-head { margin-bottom: 26px; }
.auth-pill { display: inline-block; color: #008e54; background: #e1f7eb; border-radius: 30px; font-size: 11px; font-weight: 900; letter-spacing: 1.4px; padding: 9px 13px; }
.auth-panel h2 { margin: 17px 0 9px; font-size: clamp(29px, 2.5vw, 39px); letter-spacing: -1.6px; line-height: 1.1; }
.auth-panel-head p { color: var(--auth-muted); line-height: 1.6; margin: 0; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.form-field input, .form-field select { width: 100%; height: 49px; border: 1px solid var(--auth-border); border-radius: 11px; outline: none; font: inherit; font-size: 15px; color: #0c2347; background: #fff; padding: 0 15px; transition: border-color .2s, box-shadow .2s; }
.form-field input:focus, .form-field select:focus { border-color: #008f50; box-shadow: 0 0 0 3px rgba(5, 164, 88, .13); }
.form-field input:disabled { background: #eef1f5; color: #9aa6b4; cursor: not-allowed; }
.form-field input::placeholder { color: #8c9ab1; }
.form-field select { cursor: pointer; }
.form-inline { display: flex; justify-content: flex-end; margin: 2px 0 18px; }
.form-inline a, .auth-switch a { color: #008c49; font-weight: 900; }
.form-inline a:hover, .auth-switch a:hover { text-decoration: underline; }
.form-tip { font-size: 12px; line-height: 1.5; color: var(--auth-muted); margin: -4px 0 18px; }

.auth-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border: 0; border-radius: 11px; background: linear-gradient(115deg, #05b35e, #008b48); font: inherit; font-size: 16px; font-weight: 900; color: #fff; cursor: pointer; padding: 12px 18px; text-align: center; }
.auth-button:hover:not(:disabled) { filter: brightness(1.07); }
.auth-button:disabled { cursor: not-allowed; opacity: .65; }
.auth-switch { text-align: center; margin: 25px 0 0; font-size: 14px; color: var(--auth-muted); line-height: 1.5; }
.form-alert { padding: 13px 15px; background: #fff5d9; border: 1px solid #f1cf8c; border-radius: 10px; color: #6b4b00; font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.form-alert[hidden], [hidden] { display: none !important; }
.auth-footer { text-align: center; padding: 10px 20px 25px; font-size: 12px; color: var(--auth-muted); }

.dashboard-header { min-height: 78px; display: flex; justify-content: space-between; align-items: center; padding: 12px max(25px, calc((100% - 1120px)/2)); background: #071b40; color: white; gap: 20px; }
.dashboard-header > a:last-child { font-weight: 800; }
.dashboard-main { width: min(100% - 36px, 1120px); margin: 46px auto; }
.dashboard-card { padding: clamp(24px, 5vw, 48px); background: #fff; border-radius: 20px; box-shadow: 0 12px 40px rgba(10,29,64,.08); }
.dashboard-card h1 { font-size: clamp(26px, 3.5vw, 40px); margin: 17px 0 12px; }
.dashboard-card p { font-size: 16px; color: var(--auth-muted); line-height: 1.6; }
.dashboard-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 27px 0; }
.dashboard-data div, .dashboard-tiles div { padding: 17px; border-radius: 12px; background: #f0f5fb; overflow-wrap: anywhere; }
.dashboard-data dt { font-size: 12px; color: var(--auth-muted); font-weight: 800; margin-bottom: 7px; }
.dashboard-data dd { margin: 0; font-weight: 800; }
.dashboard-admin-link { width: fit-content; }
.dashboard-logout { margin-top: 20px; background: none; border: 0; color: #b3263b; font: inherit; font-weight: 900; cursor: pointer; padding: 5px 0; }
.dashboard-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.dashboard-tiles strong { display: block; font-size: 18px; margin-bottom: 8px; }
.dashboard-tiles span { color: var(--auth-muted); font-size: 13px; }

@media (max-width: 860px) {
    .auth-main { grid-template-columns: 1fr; max-width: 650px; }
    .auth-showcase { min-height: 240px; padding: 28px 30px 0; }
    .auth-showcase h1 { font-size: 30px; }
    .auth-showcase p:not(.auth-eyebrow) { font-size: 14px; }
    .auth-showcase img { display: none; }
    .auth-panel { padding: 35px 32px; }
    .dashboard-data, .dashboard-tiles { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .auth-header-inner { padding: 12px 18px; }
    .auth-brand { font-size: 20px; }
    .auth-brand span { font-size: 27px; }
    .auth-back { font-size: 12px; }
    .auth-main { width: calc(100% - 20px); margin: 12px auto 24px; border-radius: 17px; }
    .auth-showcase { min-height: 210px; padding: 21px 21px 0; }
    .auth-showcase h1 { font-size: 26px; }
    .auth-showcase p:not(.auth-eyebrow) { font-size: 13px; }
    .auth-panel { padding: 27px 20px; }
    .dashboard-header { padding: 14px 18px; }
    .dashboard-main { margin-top: 22px; }
    .dashboard-admin-link { width: 100%; }
}
