/* Scoped to login: recovery and the application retain their own layouts. */
.login-shell.login-shell-minimal { display: block; min-height: 100vh; padding: 0; margin: 0; background: #f6f8fc; }
.hd-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; font-family: "Segoe UI", Inter, Arial, sans-serif; }
.hd-login-story { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; min-width: 0; padding: clamp(32px, 4vw, 64px); color: #fff; background: radial-gradient(ellipse at 95% 85%, #115c72 0, transparent 59%), linear-gradient(150deg, #0a1e3b, #10365b); }
.hd-login-story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0a2243cc, transparent); pointer-events: none; }
.hd-login-logo { position: relative; z-index: 1; }
.hd-login-logo .brand-name { color: #fff; font-size: 30px; letter-spacing: -1px; }
.hd-login-logo .brand-name span { color: #45d2d2; }
.hd-login-art { position: absolute; z-index: -2; inset: auto -25% -15% auto; width: 110%; height: 110%; pointer-events: none; }
.hd-login-copy { position: relative; margin: auto 0; padding: 48px 0 60px; }
.hd-login-overline { display: flex; align-items: center; gap: 9px; color: #bed4e6; font-size: 12px; font-weight: 500; letter-spacing: .6px; }
.hd-login-overline > span { width: 6px; height: 6px; border-radius: 50%; background: #56d8d4; }
.hd-login-copy h2 { margin: 23px 0; color: #fff; font-size: clamp(42px, 4.05vw, 68px); font-weight: 650; line-height: 1.13; letter-spacing: -2px; }
.hd-login-copy h2 span { color: #56d8d4; }
.hd-login-copy p { margin: 0; color: #c2d6e9; font-size: 16px; line-height: 1.7; }
.hd-login-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 460px; margin: 42px 0 0; padding: 0; list-style: none; }
.hd-login-flow li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 16px; border: 1px solid #557c9866; border-radius: 12px; background: #22496b66; color: #edf8ff; font-size: 12px; font-weight: 500; }
.hd-login-flow svg { width: 23px; height: 23px; stroke: #67e2dd; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hd-login-story-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #a7c3d8; font-size: 11px; }
.hd-login-story-footer span { color: #a7c3d8; }
.hd-login-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 56px 32px 32px; background: radial-gradient(ellipse at 0 0, #ecf4fb, transparent 60%), #f8fafc; }
.hd-login-card { width: 100%; max-width: 420px; padding: 40px; border: 1px solid #e6edf4; border-radius: 22px; background: #fff; box-shadow: 0 20px 65px #2346690b, 0 2px 6px #23466903; }
.hd-login-heading { margin: 0 0 30px; padding: 0; }
.hd-login-heading h1 { margin: 0 0 9px; color: #142b46; font-size: 27px; font-weight: 650; line-height: 1.25; letter-spacing: -.8px; }
.hd-login-heading p { margin: 0; color: #697d92; font-size: 14px; line-height: 1.5; }
.hd-login-form { display: grid; gap: 21px; margin: 0; }
.hd-login-field { min-width: 0; }
.hd-login-field label { display: block; margin: 0 0 8px; color: #31465c; font-size: 13px; font-weight: 600; }
.hd-login-input { position: relative; }
.hd-login-input > svg { position: absolute; top: 50%; left: 15px; width: 19px; height: 19px; transform: translateY(-50%); color: #7a8da1; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.hd-login-input input { display: block; width: 100%; min-width: 0; height: 49px; min-height: 49px; padding: 12px 14px 12px 44px; border: 1px solid #d9e3ed; border-radius: 9px; color: #20354d; background: #fbfcfe; font: inherit; font-size: 16px; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease; }
.hd-login-input input::placeholder { color: #728498; font-size: 13px; opacity: 1; }
.hd-login-input input:hover { border-color: #99b5cf; }
.hd-login-input input:focus { outline: 2px solid #2375e5; outline-offset: 2px; border-color: #2375e5; background: #fff; box-shadow: 0 0 0 4px #2375e514; }
.hd-login-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 49px; margin: 3px 0 0; padding: 12px 18px; border: 0; border-radius: 9px; background: #2265de; color: #fff; font: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 6px 14px #2265de20; cursor: pointer; transition: background .15s ease; }
.hd-login-submit:hover { background: #1a54c1; transform: none; box-shadow: 0 6px 14px #2265de20; }
.hd-login-submit > svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hd-login-reset { display: block; width: max-content; max-width: 100%; margin: 19px auto -5px; padding: 10px 5px; color: #245fc4; font-size: 13px; line-height: 1.5; }
.hd-login-reset:hover { color: #174da8; text-decoration: underline; }
.hd-login-support { max-width: 400px; margin: 24px 12px 0; color: #65798e; font-size: 12px; line-height: 1.6; text-align: center; }
.hd-login-version { margin: 26px 0 0; color: #6c8092; font-size: 11px; }
.hd-login-error { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #f2c9c9; border-radius: 9px; background: #fff4f4; color: #9b2929; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.hd-login-error .errorlist { margin: 0; padding-left: 17px; }
.hd-login-field .errorlist { margin: 8px 0 0; padding: 0; list-style: none; color: #a52d2d; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.hd-login-mobile-logo { display: none; }
@media (min-width: 1500px) { .hd-login-card { max-width: 440px; padding: 44px; } .hd-login-heading h1 { font-size: 29px; } }
@media (max-height: 760px) and (min-width: 901px) { .hd-login-story { padding-top: 30px; padding-bottom: 28px; } .hd-login-copy { padding: 30px 0; } .hd-login-copy h2 { margin: 18px 0; font-size: clamp(40px, 4vw, 60px); } .hd-login-flow { margin-top: 28px; } .hd-login-panel { padding-top: 30px; padding-bottom: 24px; } .hd-login-card { padding: 32px; } .hd-login-version { margin-top: 18px; } }
@media (max-width: 1100px) and (min-width: 901px) { .hd-login-story { padding-left: 30px; padding-right: 30px; } .hd-login-panel { padding-left: 24px; padding-right: 24px; } .hd-login-card { padding: 30px; } .hd-login-flow { gap: 8px; } .hd-login-flow li { padding: 14px 11px; } .hd-login-heading h1 { font-size: 25px; } }
@media (max-width: 900px) { .hd-login { display: flex; flex-direction: column; } .hd-login-story { display: none; } .hd-login-panel { flex: 1; padding: 36px 24px 24px; } .hd-login-mobile-logo { display: inline-flex; margin-bottom: 32px; } .hd-login-mobile-logo .brand-mark { width: 34px; height: 34px; flex-basis: 34px; } .hd-login-mobile-logo .brand-name { font-size: 25px; } .hd-login-heading h1 { font-size: 26px; } }
@media (max-width: 480px) { .hd-login-panel { padding: 24px 18px; } .hd-login-card { padding: 28px 24px; border-radius: 18px; } .hd-login-heading { margin-bottom: 26px; } .hd-login-heading h1 { font-size: 24px; } .hd-login-mobile-logo { margin-bottom: 28px; } .hd-login-support { font-size: 11px; } }
@media (max-width: 350px) { .hd-login-panel { padding: 20px 12px; } .hd-login-card { padding: 24px 18px; } .hd-login-heading h1 { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .hd-login *, .hd-login *::before, .hd-login *::after { transition: none !important; animation: none !important; } }
