:root {
    --auth-ink: #10261f;
    --auth-muted: #71827b;
    --auth-green: #19a9df;
    --auth-green-dark: #0b73b7;
    --auth-mint: #e5f4fb;
    --auth-line: rgba(16, 38, 31, .11);
}

.bsten-auth-page { min-width: 320px; overflow: hidden; color: var(--auth-ink); background: #f4f8fb; }
.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(150deg, #063e6f 0%, #032a4c 70%, #021c32 100%); }
.bsten-login-story::before { content: ''; position: absolute; width: 560px; height: 560px; right: -260px; top: -240px; border: 100px solid rgba(25, 169, 223, .11); border-radius: 50%; }
.bsten-login-story::after { content: ''; position: absolute; width: 360px; height: 360px; left: -220px; bottom: -170px; border-radius: 50%; background: rgba(102, 108, 255, .12); 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: #9ceccb; 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(32,201,130,.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: #65cff6; }
.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(112,227,179,.32); transform: translateX(4px); }
.login-profile-item > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 2px; color: #72d3f6; background: rgba(25,169,223,.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 { display: flex; align-items: center; justify-content: center; height: 100vh; min-height: 650px; padding: 32px clamp(35px, 6vw, 86px); background: linear-gradient(135deg, #f8fbfd, #eef4fa); }
.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: #b9ead5; background: #e9faf3; }
.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(10,139,87,.65); box-shadow: 0 0 0 4px rgba(32,201,130,.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: #a8b3ae; }

/* 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: #063e6f; box-shadow: 6px 6px 0 rgba(25,169,223,.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: #666cff; box-shadow: 8px 8px 0 rgba(102,108,255,.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; }
}
