/* Agilli — Layout de autenticação (entrar, cadastro, recuperação de senha) */

.auth-page {
    --bs-body-font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
    color: #142a25;
    background:
        radial-gradient(ellipse 800px 480px at 12% 0%, rgba(45, 104, 83, .28), transparent 55%),
        radial-gradient(ellipse 600px 400px at 90% 100%, rgba(212, 240, 120, .08), transparent 50%),
        #102b25;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

.auth-header { padding: 26px 0 0; }
.auth-header .brand { font-size: 1.35rem; }
.auth-header .brand-mark { width: 32px; height: 32px; flex: 0 0 32px; }

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

/* ── Painel lateral ─────────────────────────────── */
.auth-aside { color: #fff; max-width: 520px; }
.auth-eyebrow {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 18px; color: var(--lime, #d4f078);
    font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.auth-eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--lime, #d4f078); box-shadow: 0 0 14px var(--lime, #d4f078);
}
.auth-aside h1 {
    margin: 0 0 18px; font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.1; font-weight: 600; letter-spacing: -.04em;
}
.auth-aside > p { margin: 0 0 26px; color: rgba(255, 255, 255, .72); font-size: 1rem; line-height: 1.75; max-width: 480px; }
.auth-benefits { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.auth-benefits li {
    display: flex; align-items: baseline; gap: 14px;
    color: #edf3ed; font-size: .92rem;
}
.auth-benefits li span {
    flex: 0 0 28px; color: var(--lime, #d4f078);
    font-size: .74rem; font-weight: 700; letter-spacing: .08em;
}
.auth-note {
    margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .5); font-size: .76rem; line-height: 1.6;
}

/* ── Cartão de formulário ───────────────────────── */
.auth-card {
    background: #fffefa; color: #142a25;
    border: 1px solid #e0e5d9; border-radius: 20px;
    padding: clamp(26px, 4vw, 42px);
    box-shadow: 0 24px 70px rgba(4, 20, 14, .35);
}
.auth-card h1, .auth-card h2 { margin: 0 0 8px; letter-spacing: -.035em; }
.auth-card > .h2, .auth-card > h1 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; }
.auth-card > p.text-secondary, .auth-card > p.lead { color: #5a695e; margin-bottom: 1.6rem; }
.auth-card .form-label { color: #33503f; font-weight: 600; font-size: .85rem; margin-bottom: .4rem; }
.auth-card .form-control {
    border: 1px solid #c9d3c6; border-radius: 9px; min-height: 46px;
    color: #1f3a2d; background: #fff; font-size: .95rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.auth-card .form-control:hover { border-color: #aebfa9; }
.auth-card .form-control:focus {
    border-color: #426a38; box-shadow: 0 0 0 3px rgba(83, 119, 54, .16);
}
.auth-card .form-control::placeholder { color: #8a968f; }
.auth-card .btn-primary {
    width: 100%; min-height: 48px; border-radius: 9px;
    background: #245b43; border-color: #245b43;
    font-weight: 600; font-size: .92rem;
    box-shadow: 0 3px 0 #1a4533;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.auth-card .btn-primary:hover { background: #1c4d39; border-color: #1c4d39; transform: translateY(-1px); box-shadow: 0 4px 0 #153a2a; }
.auth-card .btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #153a2a; }
.auth-card .btn-outline-primary { border-radius: 9px; }
.auth-card a { color: #284f35; font-weight: 600; text-underline-offset: 3px; }
.auth-card a:hover { color: #1c4d39; }
.auth-card .text-end a { font-weight: 600; font-size: .85rem; }
.auth-card .alert { border-radius: 10px; font-size: .86rem; }
.auth-card .alert-success { color: #2c5a3a; background: #edf6ec; border-color: #c9e2cb; }
.auth-card .alert-danger { color: #8f2b24; background: #fdf0ef; border-color: #edc9c5; }
.auth-card .text-danger { color: #a02f28 !important; font-size: .82rem; }
.auth-card .form-text { color: #6b7a70; font-size: .78rem; }
.auth-card details summary {
    cursor: pointer; color: #245b43; font-weight: 600; font-size: .86rem;
    padding: 10px 0; border-top: 1px solid #e4e9e0;
}
.auth-card details summary:hover { color: #1c4d39; }
.auth-card details[open] summary { margin-bottom: 12px; }
.auth-card .terms-box {
    max-height: 15rem; overflow-y: auto; padding: 1rem;
    border: 1px solid #d5ddd2; border-radius: 10px;
    background: #f8faf6; font-size: .84rem; line-height: 1.6;
    overscroll-behavior: contain;
}
.auth-card .form-check-input:checked { background-color: #245b43; border-color: #245b43; }
.auth-card .form-check-label { color: #4b5d51; font-size: .86rem; line-height: 1.6; }
.auth-card > p.mt-4 { margin-top: 1.6rem !important; padding-top: 1.2rem; border-top: 1px solid #e4e9e0; color: #5a695e; font-size: .88rem; }
.auth-card .vstack { gap: 1.1rem !important; }
.auth-card .privacy-notice { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #e4e9e0; }

/* ── Rodapé ─────────────────────────────────────── */
.auth-footer {
    padding: 22px 0 30px;
    color: rgba(255, 255, 255, .55);
    font-size: .78rem;
}
.auth-footer .legal-links { color: rgba(255, 255, 255, .62); }
.auth-footer .legal-links a, .auth-footer .legal-links button { color: rgba(255, 255, 255, .72); }
.auth-footer .legal-links a:hover, .auth-footer .legal-links button:hover { color: var(--lime, #d4f078); }
.auth-footer .business-identity { color: rgba(255, 255, 255, .45); font-size: .74rem; }
.auth-footer .business-identity a { color: rgba(212, 240, 120, .8); }

/* ── Responsivo ─────────────────────────────────── */
@media (max-width: 991.98px) {
    .auth-grid { grid-template-columns: 1fr; gap: 32px; }
    .auth-aside { max-width: 640px; }
    .auth-aside h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
    .auth-main { padding: 28px 0; align-items: flex-start; }
    .auth-card { max-width: 560px; }
}
@media (max-width: 575.98px) {
    .auth-header { padding-top: 18px; }
    .auth-main { padding: 20px 0; }
    .auth-card { padding: 22px 18px; border-radius: 16px; }
    .auth-aside { display: none; }
    .auth-footer { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-card .btn-primary { transition: none; }
}

/* Precision Ops: split canvas shared by the real authentication pages. */
.auth-page { display: block; background: #f4f6f3; color: #111f18; font-family: var(--ag-font, system-ui, sans-serif); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); min-height: 100dvh; }
.auth-showcase { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 64px); color: #fff; background: radial-gradient(70% 50% at 5% 0%, #c7f66617, transparent), #0b1d15; position: relative; overflow: hidden; }
.auth-showcase::after { content: ''; position: absolute; width: 17rem; aspect-ratio: 1; border: 1px solid #ffffff14; border-radius: 50%; top: -7rem; right: -7rem; pointer-events: none; }
.auth-header { padding: 0; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-header .brand { color: #fff; font-size: 1.6rem; font-weight: 800; text-decoration: none; }
.auth-header .brand-dot { color: #c7f666; }
.auth-header .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; background-color: #fff; }
.auth-header-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ffffff1e; border-radius: 100px; padding: 7px 12px; background: #ffffff0c; color: #d6e5dc; font-size: .68rem; white-space: nowrap; }
.auth-header-pill span { width: 6px; height: 6px; border-radius: 50%; background: #c7f666; }
.auth-aside { position: relative; z-index: 1; max-width: 540px; margin-block: 36px; }
.auth-eyebrow { color: #c7f666; font-size: .69rem; letter-spacing: .17em; }
.auth-eyebrow-dot { background: #c7f666; box-shadow: 0 0 12px #c7f66688; }
.auth-aside .auth-showcase-heading { margin: 0 0 20px; max-width: 13ch; color: #fff; font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.08; font-weight: 800; letter-spacing: -.045em; }
.auth-aside .auth-showcase-heading em { color: #c7f666; font-style: normal; }
.auth-aside > p { color: #cbd9d0; font-size: .93rem; }
.auth-benefits { gap: 10px; margin-block: 26px; }
.auth-benefits li { align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid #ffffff17; border-radius: 12px; background: #ffffff0b; }
.auth-benefits li > span { display: grid; place-items: center; flex-basis: 32px; height: 30px; border: 1px solid #c7f66630; border-radius: 8px; background: #c7f66618; color: #c7f666; font-family: ui-monospace, monospace; font-size: .7rem; }
.auth-benefits strong, .auth-benefits small { display: block; }
.auth-benefits strong { color: #fff; font-size: .83rem; font-weight: 650; }
.auth-benefits small { margin-top: 3px; color: #aebfb4; font-size: .7rem; }
.auth-preview { margin-top: 24px; padding: 17px 19px; border: 1px solid #ffffff1a; border-radius: 15px; background: #10291e; }
.auth-preview > span { display: block; margin-bottom: 14px; color: #c7f666; font-size: .62rem; letter-spacing: .13em; font-weight: 700; }
.auth-preview > div { display: grid; grid-template-columns: 68px minmax(0,1fr) 36px; align-items: center; gap: 12px; margin-top: 9px; color: #d8e5db; font-size: .7rem; }
.auth-preview i { font-style: normal; }.auth-preview b { display: block; height: 6px; border-radius: 10px; background: linear-gradient(90deg,#c7f666 var(--preview-fill),#ffffff20 var(--preview-fill)); }.auth-preview strong { color: #fff; font-family: ui-monospace,monospace; text-align: right; }
.auth-note { z-index: 1; margin: 0; color: #aebfb4; }
.auth-form-panel { display: flex; flex-direction: column; min-width: 0; padding: 26px clamp(18px, 4vw, 60px); background: #f4f6f3; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 20px 0; min-width: 0; }
.auth-card { width: min(100%, 480px); max-width: none; padding: clamp(22px, 3vw, 34px); border: 1px solid #e3e8e1; border-radius: 17px; background: #fff; box-shadow: 0 12px 42px #0b1d1512; }
.auth-card h1 { color: #111f18; font-size: 1.55rem; font-weight: 800; }
.auth-card > p { color: #58685e; font-size: .84rem; }
.auth-card .form-control { border-color: #d8e1d7; border-radius: 11px; background: #fafbfa; }
.auth-input-wrap { position: relative; }.auth-input-wrap .form-control { padding-left: 42px; }.auth-input-wrap:has(.auth-password-toggle) .form-control { padding-right: 78px; }
.auth-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7d8f83; font-size: .95rem; line-height: 1; pointer-events: none; }
.auth-password-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); min-height: 34px; border: 0; border-radius: 7px; padding: 4px 8px; background: transparent; color: #14533c; font-size: .7rem; font-weight: 700; }.auth-password-toggle:hover { background: #e8f3ee; }
.auth-card .form-control:focus { border-color: #14533c; box-shadow: 0 0 0 3px #c7f66680; }
.auth-card .btn-primary { min-height: 48px; border-radius: 11px; background: #14533c; border-color: #14533c; box-shadow: 0 3px 10px #14533c23; }
.auth-card .btn-primary:hover { background: #0f3f2d; border-color: #0f3f2d; box-shadow: 0 5px 14px #14533c32; }
.auth-footer { padding: 10px 0 0; color: #66776c; }
.auth-footer .legal-links, .auth-footer .legal-links a, .auth-footer .legal-links button, .auth-footer .business-identity { color: #607267; }
.auth-footer .business-identity a { color: #14533c; }
@media (max-width: 991.98px) { .auth-shell { grid-template-columns: 1fr; }.auth-showcase { padding: 20px 24px; }.auth-aside,.auth-note { display: none; }.auth-form-panel { min-height: calc(100dvh - 84px); }.auth-main { padding-block: 30px; } }
@media (max-width: 575.98px) { .auth-header-pill { display: none; }.auth-form-panel { padding: 18px; }.auth-card { padding: 22px 18px; }.auth-footer { font-size: .7rem; } }
@media (prefers-reduced-motion: reduce) { .auth-page *, .auth-page *::before, .auth-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
