:root {
    --auth-ink: #2A1B12;
    --auth-muted: #7A6558;
    --auth-green: #E2571E;
    --auth-green-dark: #A8410F;
    --auth-mint: #FBE9D8;
    --auth-line: rgba(42, 27, 18, .12);
}

.bsten-auth-page { min-width: 320px; overflow: hidden; color: var(--auth-ink); background: #FBF4EB; }
.bsten-auth-page .authentication-wrapper { height: 100vh; min-height: 650px; overflow: hidden; }
.bsten-auth-page .auth-cover-brand { display: none !important; }
.bsten-auth-page .bsten-login { display: grid; grid-template-columns: minmax(440px, .95fr) minmax(500px, 1.05fr); width: 100%; min-height: 100vh; font-family: Inter, sans-serif; }

.bsten-login-story { position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100vh; min-height: 650px; padding: 30px clamp(34px, 4vw, 64px); color: #fff; background: linear-gradient(155deg, #C24A12 0%, #7A2F0C 34%, #3A1D10 68%, #20140D 100%); }
.bsten-login-story::before { content: ''; position: absolute; width: 520px; height: 520px; right: -210px; top: -200px; border: 90px solid rgba(255, 176, 103, .13); border-radius: 34px; transform: rotate(14deg); }
.bsten-login-story::after { content: ''; position: absolute; width: 340px; height: 340px; left: -180px; bottom: -150px; border-radius: 28px; transform: rotate(-10deg); background: rgba(226, 87, 30, .16); filter: blur(2px); }
.login-story-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.login-brand { position: relative; z-index: 2; display: inline-block; width: fit-content; }
.login-brand img { width: 122px; height: auto; filter: brightness(0) invert(1); }
.login-story-content { position: relative; z-index: 2; width: 100%; max-width: 540px; margin: auto 0; padding: 24px 0; }
.login-kicker { display: inline-flex; align-items: center; gap: 10px; color: #F0B27F; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.login-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--auth-green); box-shadow: 0 0 0 6px rgba(226, 87, 30,.12); }
.login-story-content h1 { margin: 16px 0 13px; color: #fff; font-size: clamp(2.35rem, 3.3vw, 3.65rem); line-height: 1; letter-spacing: -.055em; font-weight: 800; }
.login-story-content h1 span { color: #FFB067; }
.login-story-content > p { max-width: 500px; margin: 0; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.6; }
.login-profile-list { display: grid; gap: 7px; max-width: 540px; margin-top: 24px; }
.login-profile-item { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: center; padding: 9px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 3px; background: rgba(255,255,255,.04); backdrop-filter: blur(10px); transition: border-color .25s ease, transform .25s ease; }
.login-profile-item:hover { border-color: rgba(255, 176, 103,.32); transform: translateX(4px); }
.login-profile-item > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 2px; color: #72d3f6; background: rgba(226, 87, 30,.14); font-size: 18px; }
.login-profile-item span, .login-profile-item strong { display: block; }
.login-profile-item span { color: rgba(255,255,255,.53); font-size: 11px; line-height: 1.45; }
.login-profile-item strong { margin-bottom: 2px; color: #fff; font-size: 13px; }
.login-story-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 15px; color: rgba(255,255,255,.42); font-size: 10px; }
.login-story-footer span:first-child { display: flex; align-items: center; gap: 7px; }
.login-story-footer i { width: 6px; height: 6px; border-radius: 50%; background: var(--auth-green); }

.bsten-login-panel { position: relative; display: flex; align-items: center; justify-content: center; height: 100vh; min-height: 650px; padding: 32px clamp(35px, 6vw, 86px); background: linear-gradient(135deg, #FDF9F3, #FBF1E5); }
.login-mobile-brand { display: none; }
.login-card { width: 100%; max-width: 465px; }
.login-heading { margin-bottom: 23px; }
.login-overline { color: var(--auth-green-dark); font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.login-heading h2 { margin: 10px 0 6px; color: var(--auth-ink); font-size: clamp(2rem, 2.7vw, 2.75rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 780; }
.login-heading p { margin: 0; color: var(--auth-muted); font-size: 14px; }
.login-alert { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-bottom: 22px; padding: 13px 15px; border: 1px solid; border-radius: 2px; font-size: 12px; line-height: 1.5; }
.login-alert i { font-size: 18px; }
.login-alert span { display: block; }
.login-alert-success { color: #08754a; border-color: #E9C9A6; background: #F6EFE6; }
.login-alert-error { color: #a53d3d; border-color: #f1cccc; background: #fff1f1; }
.login-form { display: grid; gap: 15px; }
.login-field label, .login-label-row label { margin: 0 0 8px; color: var(--auth-ink); font-size: 12px; font-weight: 750; }
.login-label-row { display: flex; align-items: center; justify-content: space-between; }
.login-label-row a { margin-bottom: 8px; color: var(--auth-green-dark); font-size: 11px; font-weight: 700; text-decoration: none; }
.login-input-wrap { position: relative; display: flex; align-items: center; min-height: 50px; overflow: hidden; border: 1px solid var(--auth-line); border-radius: 2px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.login-input-wrap:focus-within { border-color: rgba(226, 87, 30,.65); box-shadow: 0 0 0 4px rgba(226, 87, 30,.1); }
.login-input-wrap > i { position: absolute; left: 17px; z-index: 1; color: #8b9993; font-size: 20px; pointer-events: none; }
.login-input-wrap input { width: 100%; min-height: 48px; padding: 12px 52px 12px 45px; border: 0; outline: 0; color: var(--auth-ink); background: transparent; font-family: inherit; font-size: 13px; }
.login-input-wrap input::placeholder { color: #A8998A; }

/* Autofill do Chrome: ele injeta -webkit-text-fill-color e um background proprios,
   e o `color` normal nao vence — por isso a senha salva aparecia branca (invisivel)
   ate o usuario digitar. Forcamos texto e fundo. O transition de 5000s e o truque
   padrao pra impedir o Chrome de repintar o fundo amarelo dele. */
.login-input-wrap input:-webkit-autofill,
.login-input-wrap input:-webkit-autofill:hover,
.login-input-wrap input:-webkit-autofill:focus,
.login-input-wrap input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--auth-ink) !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
            box-shadow: 0 0 0 1000px #fff inset !important;
    caret-color: var(--auth-ink);
    transition: background-color 5000s ease-in-out 0s;
}
.login-password-toggle { position: absolute; right: 7px; display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 0; border-radius: 2px !important; color: var(--auth-muted); background: transparent; cursor: pointer; }
.login-password-toggle:hover { color: var(--auth-green-dark); background: var(--auth-mint); }
.login-check { display: flex; align-items: center; gap: 9px; width: fit-content; margin-top: -3px; color: var(--auth-muted); font-size: 11px; cursor: pointer; }
.login-check input { width: 16px; height: 16px; accent-color: var(--auth-green-dark); }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px 20px; border: 0; border-radius: 2px; color: #fff; background: #A8410F; box-shadow: 6px 6px 0 rgba(226, 87, 30,.14); font-family: inherit; font-size: 12px; font-weight: 780; cursor: pointer; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.login-submit:hover { transform: translateY(-2px); background: #C0410F; box-shadow: 8px 8px 0 rgba(226, 87, 30,.16); }
.login-submit i { font-size: 18px; transition: transform .25s ease; }
.login-submit:hover i { transform: translateX(4px); }
.login-help { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); font-size: 10px; }
.login-help i { font-size: 17px; }
.login-help a { color: var(--auth-green-dark); font-weight: 750; text-decoration: none; }

@media (max-width: 1100px) {
    .bsten-auth-page .bsten-login { grid-template-columns: minmax(380px, .8fr) minmax(470px, 1.2fr); }
    .bsten-login-story { padding-inline: 42px; }
    .login-story-content h1 { font-size: 4rem; }
}
@media (max-width: 900px) {
    .bsten-auth-page { overflow: auto; }
    .bsten-auth-page .authentication-wrapper { height: auto; min-height: 100vh; overflow: visible; }
    .bsten-auth-page .bsten-login { display: block; }
    .bsten-login-story { display: none; }
    .bsten-login-panel { position: relative; height: auto; min-height: 100vh; padding: 100px 28px 48px; }
    .login-mobile-brand { position: absolute; display: block; left: 28px; top: 30px; }
    .login-mobile-brand img { width: 125px; }
}
@media (max-width: 575px) {
    .bsten-login-panel { align-items: flex-start; padding: 98px 20px 40px; }
    .login-mobile-brand { left: 20px; top: 25px; }
    .login-heading { margin-bottom: 28px; }
    .login-heading h2 { font-size: 2.5rem; }
    .login-help { align-items: flex-start; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .login-profile-item, .login-submit, .login-submit i { transition: none; }
}


/* brilho quente no canto — dá profundidade sem custar imagem */
.bsten-login-story::before { box-shadow: 0 0 180px 40px rgba(226, 87, 30, .18) inset; }
.bsten-login-story { position: relative; }
.bsten-login-story > * { position: relative; z-index: 1; }




/* voltar ao site — link discreto no topo, fora do fluxo do card */
.login-back {
    position: absolute; left: clamp(28px, 4vw, 56px); top: 30px; z-index: 3;
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--auth-muted); font-size: 14px; font-weight: 600;
    text-decoration: none; transition: color .2s ease, gap .2s ease;
}
.login-back:hover { color: var(--auth-green-dark); gap: 11px; }
.login-back i { font-size: 17px; line-height: 1; }

/* no celular o logo ocupa o topo-esquerdo: o voltar troca de lado */
@media (max-width: 991.98px) {
    .login-back { left: auto; right: 28px; top: 34px; font-size: 13px; }
}


/* links sem classe (Esqueci minha senha, Voltar para o login) herdavam o azul
   do Bootstrap. :not([class]) mira só neles — quem já tem classe própria
   (.login-back, .login-help a) mantém o estilo dele. */
.bsten-auth-page a:not([class]),
.bsten-login a:not([class]) {
    color: var(--auth-green-dark);
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}
.bsten-auth-page a:not([class]):hover,
.bsten-login a:not([class]):hover {
    color: var(--auth-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}
