:root {
    --login-green: #079b57;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
button, input { font: inherit; }

.account-login-body {
    min-width: 320px;
    background: #073f80;
    color: #142447;
    font-family: Barlow, Arial, sans-serif;
}

.account-login-page {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 120px 5vw 46px;
    background: #073f80;
}

.account-login-background { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }

.account-login-page::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(90deg,transparent 0%,transparent 55%,rgba(0,43,78,.08) 72%,rgba(0,43,78,.15) 100%);
    content: "";
    pointer-events: none;
}

.account-login-utility {
    position: absolute;
    z-index: 2;
    top: 32px;
    right: max(calc((100vw - 1220px) / 2 + 40px),calc(5vw + 40px));
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(0,60,95,.22);
    box-shadow: 0 8px 24px rgba(0,43,82,.1);
    color: #fff;
    font-size: 13px;
    text-shadow: 0 1px 5px rgba(0,31,70,.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.account-login-utility__globe {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
}

.account-login-utility svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.account-login-utility > strong { padding: 5px 13px; border-radius: 999px; background: #fff; color: #08784a; font-size: 13px; }
.account-login-utility__separator { width: 1px; height: 30px; margin: 0 6px; background: rgba(255,255,255,.55); }
.account-login-clock { display: grid; min-width: 134px; gap: 2px; }
.account-login-clock b { font-size: 14px; }

.account-login-shell {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(1220px, 100%);
    justify-content: flex-end;
    padding-right: 40px;
    align-items: start;
}

.account-login-card {
    position: relative;
    width: 430px;
    max-width: 100%;
    padding: 28px 34px 26px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 25px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 24px 60px rgba(0,45,85,.2),0 4px 12px rgba(0,45,85,.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: account-card-enter .42s cubic-bezier(.22,.8,.32,1) both;
}

.account-login-card::after {
    position: absolute;
    right: -38%;
    bottom: -205px;
    width: 176%;
    height: 285px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,rgba(20,190,125,.11) 0,rgba(20,190,125,.055) 42%,rgba(20,190,125,0) 72%);
    content: "";
    pointer-events: none;
}

.account-login-card > * { position: relative; z-index: 1; }
.account-login-card__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.account-login-card__brand img { width: 134px; height: auto; }
.account-login-card__brand span { width: 100%; max-width: 360px; margin-top: 8px; color: #07854a; font-size: 11px; font-weight: 800; line-height: 1.25; text-transform: uppercase; }
.account-login-card-head { margin: 10px 0 19px; }
.account-login-card-head h1 { margin: 0; color: #09265d; font-size: 32px; font-weight: 900; line-height: 1.08; letter-spacing: -.025em; }
.account-login-card-head p { margin: 7px 0 0; color: #56677f; font-size: 14px; font-weight: 500; }

.account-login-form { display: grid; gap: 13px; }
.account-login-field { position: relative; }
.account-login-field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.account-login-field__icon { position: absolute; z-index: 2; top: 12px; left: 14px; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #edf3ff; color: #173c83; }
.account-login-field__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-login-field input { display: block; width: 100%; height: 50px; padding: 0 48px; border: 1px solid #c5d3e1; border-radius: 11px; background: rgba(255,255,255,.88); color: #172847; font: 600 14px/1 Barlow,Arial,sans-serif; outline: 0; transition: .18s; }
.account-login-field input::placeholder { color: #758198; font-weight: 500; }
.account-login-field input:hover { border-color: #b9c9d9; }
.account-login-field input:focus { border-color: #0da15b; background: #fff; box-shadow: 0 0 0 4px rgba(13,161,91,.1); }

.account-password-toggle { position: absolute; z-index: 2; top: 7px; right: 8px; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #1f3f78; cursor: pointer; }
.account-password-toggle:hover { background: #edf4ff; }
.account-password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-password-toggle__hide, .account-password-toggle.is-visible .account-password-toggle__show { display: none; }
.account-password-toggle.is-visible .account-password-toggle__hide { display: block; }

.field-validation-error { display: block; margin: 5px 3px 0; color: #c42c2c; font-size: 12px; font-weight: 700; }
.account-login-error { margin: 0 0 13px; padding: 10px 12px; border: 1px solid #fecaca; border-radius: 9px; background: #fff1f2; color: #9f1239; font-size: 12px; font-weight: 700; }
.account-login-error:empty { display: none; }

.account-login-remember { display: inline-flex; width: max-content; align-items: center; gap: 9px; margin: 1px 0 0; color: #53627a; font-size: 13px; font-weight: 600; cursor: pointer; }
.account-login-remember input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.account-login-remember__box { display: grid; width: 21px; height: 21px; flex: none; place-items: center; border: 1px solid #c3d1df; border-radius: 5px; background: #fff; color: #fff; transition: .18s; }
.account-login-remember__box svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.account-login-remember input[type=checkbox]:checked ~ .account-login-remember__box { border-color: var(--login-green); background: var(--login-green); box-shadow: 0 3px 8px rgba(7,155,87,.2); }
.account-login-remember input[type=checkbox]:checked ~ .account-login-remember__box svg { opacity: 1; }
.account-login-remember input[type=checkbox]:focus-visible ~ .account-login-remember__box { outline: 3px solid rgba(7,155,87,.18); outline-offset: 2px; }

.account-login-submit { display: flex; height: 52px; align-items: center; justify-content: center; margin-top: 3px; padding: 0 9px 0 52px; border: 0; border-radius: 11px; background: linear-gradient(105deg,#20ae69 0%,#078b57 100%); color: #fff; box-shadow: 0 12px 25px rgba(7,138,87,.22); font: 800 14px/1 Barlow,Arial,sans-serif; cursor: pointer; transition: .2s; }
.account-login-submit > span:first-child { margin: auto; }
.account-login-submit__arrow { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: #fff; color: #078c50; transition: transform .2s ease; }
.account-login-submit__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.account-login-submit:hover { transform: translateY(-1px); background: linear-gradient(110deg,#159e60,#067b4e); box-shadow: 0 15px 29px rgba(0,129,73,.28); }
.account-login-submit:hover .account-login-submit__arrow { transform: translateX(2px); }

.account-login-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e5ebf2; }
.account-back-btn, .account-guide-link { display: inline-flex; min-height: 34px; align-items: center; padding: 0; border: 0; background: transparent; font: 700 12px/1 Barlow,Arial,sans-serif; cursor: pointer; text-decoration: none; }
.account-back-btn { gap: 7px; color: #53627a; font-weight: 750; }
.account-back-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.account-guide-link { color: #1b4f91; }
.account-back-btn:hover, .account-guide-link:hover { color: var(--login-green); }

.account-guide-modal[hidden] { display: none; }
.account-guide-modal { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; color: #172847; }
.account-guide-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(0,20,48,.68); cursor: pointer; backdrop-filter: blur(7px); }
.account-guide-modal-card { position: relative; z-index: 1; display: grid; width: min(880px,100%); max-height: min(84vh,740px); grid-template-rows: auto minmax(0,1fr); overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(0,20,48,.4); outline: 0; }
.account-guide-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e1e8f0; }
.account-guide-modal-head h2 { margin: 0; color: #0b2a64; font-size: 23px; }
.account-guide-close { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #eef3f8; color: #183c75; font-size: 24px; font-weight: 700; cursor: pointer; }
.account-guide-modal-body { display: grid; gap: 13px; padding: 18px 24px 24px; overflow: auto; }
.account-guide-intro, .account-guide-steps section, .account-guide-note, .account-guide-support { padding: 15px; border: 1px solid #dfe7f0; border-radius: 12px; background: #f8fafc; }
.account-guide-intro span, .account-guide-steps section > strong { display: inline-flex; margin-bottom: 7px; color: #07894e; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.account-guide-modal-body h3 { margin: 0 0 7px; color: #173363; font-size: 15px; }
.account-guide-modal-body p, .account-guide-modal-body li, .account-guide-support span, .account-guide-support a { margin: 0; color: #59677d; font-size: 13px; font-weight: 600; line-height: 1.55; }
.account-guide-modal-body ul { margin: 7px 0 0; padding-left: 18px; }
.account-guide-modal-body code { padding: 2px 5px; border-radius: 5px; background: #eaf1fb; color: #173c78; font-weight: 800; }
.account-guide-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.account-guide-note { border-color: #f6d989; background: #fffbea; }
.account-guide-support > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.account-guide-support section { display: grid; gap: 4px; padding: 11px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; }
.account-guide-support a { color: #17438e; text-decoration: none; }
body.is-guide-modal-open { overflow: hidden; }

@keyframes account-card-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
    .account-login-page { align-items: center; padding: 100px 24px 56px; }
    .account-login-background { object-position: 42% center; }
    .account-login-page::before { background: rgba(0,42,78,.045); }
    .account-login-shell { justify-content: center; padding-right: 0; }
    .account-login-card { margin: auto; padding-right: 34px; padding-left: 34px; }
    .account-login-utility { top: 25px; right: 24px; }
    .account-guide-steps, .account-guide-support > div { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .account-login-page { align-items: flex-start; padding: 76px 14px 34px; }
    .account-login-background { object-position: 39% center; }
    .account-login-utility { top: 15px; right: 14px; gap: 8px; padding: 6px 8px; font-size: 11px; }
    .account-login-utility__globe { width: 30px; height: 30px; }
    .account-login-utility > strong { padding: 4px 10px; }
    .account-login-utility__separator { height: 25px; margin: 0 2px; }
    .account-login-clock { min-width: 105px; }
    .account-login-clock b { font-size: 12px; }
    .account-login-card { padding: 23px 19px; border-radius: 20px; }
    .account-login-card__brand img { width: 122px; }
    .account-login-card__brand span { max-width: 270px; font-size: 12px; line-height: 1.45; }
    .account-login-card-head { margin: 18px 0 17px; }
    .account-login-card-head h1 { font-size: 27px; }
    .account-login-card-head p { font-size: 13px; }
    .account-login-actions { align-items: flex-start; margin-top: 18px; padding-top: 14px; }
    .account-guide-modal { padding: 10px; }
    .account-guide-modal-head, .account-guide-modal-body { padding-right: 15px; padding-left: 15px; }
}

@media (max-height: 760px) and (min-width: 981px) {
    .account-login-page { padding-top: 76px; padding-bottom: 28px; }
    .account-login-utility { top: 20px; }
    .account-login-card { padding-top: 20px; padding-bottom: 22px; }
    .account-login-card__brand img { width: 105px; }
    .account-login-card-head { margin: 14px 0; }
    .account-login-field input { height: 47px; }
    .account-login-field__icon { top: 10px; }
    .account-password-toggle { top: 5px; }
    .account-login-submit { height: 49px; }
    .account-login-actions { margin-top: 14px; padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
