@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
    color: #10213a;
    background: #f5f7fb;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input { font: inherit; }

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    min-height: 100vh;
}

.login-showcase {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    min-height: 100vh;
    padding: 48px clamp(40px, 5vw, 80px) 38px;
    color: #fff;
    background: radial-gradient(circle at 82% 12%, #166b6c66 0, transparent 39%), linear-gradient(135deg, #071d36 0%, #0b3444 57%, #064752 100%);
}
.login-showcase::before,
.login-showcase::after {
    position: absolute;
    z-index: -1;
    border: 1px solid #ffffff16;
    border-radius: 50%;
    content: '';
    pointer-events: none;
}
.login-showcase::before { width: 690px; height: 690px; right: -300px; top: -140px; }
.login-showcase::after { width: 470px; height: 470px; right: -190px; top: -25px; }

.showcase-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    width: fit-content;
    color: #fff;
    text-decoration: none;
}
.showcase-logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 64px;
    height: 64px;
    padding: 5px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px #08131f55;
}
.showcase-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.showcase-brand-copy strong { display: block; font-size: clamp(30px, 2.1vw, 38px); font-weight: 800; line-height: 1.1; }
.showcase-brand-copy small { display: block; margin-top: 4px; color: #c3dfdf; font-size: 16px; line-height: 1.35; }

.showcase-copy { max-width: 690px; margin: auto 0; padding: 45px 0; }
.showcase-kicker { margin: 0; color: #62e6ce; font-size: 13px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; }
.showcase-kicker::after { display: block; width: 49px; height: 2px; margin-top: 14px; background: #62e6ce; content: ''; }
.showcase-copy h1 { margin: 28px 0 26px; color: #fff; font-size: clamp(50px, 4.05vw, 76px); font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.showcase-copy h1 span,
.showcase-copy h1 em { display: block; font-style: normal; }
.showcase-copy h1 em { color: #62e6ce; }
.showcase-description { max-width: 610px; margin: 0; color: #d9e6e9; font-size: clamp(17px, 1.1vw, 20px); line-height: 1.6; }
.showcase-features { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-bottom: 20px; color: #d9eeeb; font-size: 14px; }
.showcase-features span { display: inline-flex; align-items: center; gap: 9px; }
.showcase-features i { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid #62e6ce; border-radius: 50%; color: #62e6ce; font-size: 15px; font-style: normal; }
.login-showcase footer { margin-top: auto; color: #a9c4c8; font-size: 13px; line-height: 1.5; }

.login-form-side {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 100vh;
    padding: 36px clamp(24px, 3vw, 64px);
    background: #f5f7fb;
}
.login-form-stack { width: min(560px, 100%); }
.login-card {
    width: 100%;
    padding: clamp(30px, 2.5vw, 44px);
    border: 1px solid #dce4ee;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 65px #10213a12;
}
.login-eyebrow { margin: 0 0 10px; color: #007b71; font-size: 13px; font-weight: 700; letter-spacing: .11em; }
.login-card h2 { margin: 0 0 10px; color: #10213a; font-size: clamp(28px, 2vw, 34px); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.login-help { margin: 0 0 28px; color: #64748b; font-size: 15px; line-height: 1.55; }
.form-group { margin-bottom: 20px; }
.form-group > label,
.login-turnstile > label { display: block; margin-bottom: 8px; color: #10213a; font-size: 14px; font-weight: 700; }
.login-input { display: flex; align-items: center; min-height: 52px; border: 1px solid #dce4ee; border-radius: 11px; background: #fff; transition: border-color .16s, box-shadow .16s; }
.login-input:focus-within { border-color: #008f83; box-shadow: 0 0 0 3px #008f832b; }
.login-input > svg { flex: 0 0 48px; width: 48px; height: 20px; padding: 0 14px; fill: none; stroke: #8292a6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-input input { flex: 1; min-width: 0; min-height: 50px; padding: 10px 12px 10px 0; border: 0; border-radius: 11px; outline: 0; background: transparent; color: #10213a; font-size: 15px; }
.login-input input::placeholder { color: #64748b; opacity: 1; }
.password-toggle { display: grid; place-items: center; flex: 0 0 48px; width: 48px; min-height: 48px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #64748b; cursor: pointer; }
.password-toggle:hover { color: #008f83; }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle:focus-visible,
.login-submit:focus-visible,
.showcase-brand:focus-visible { outline: 3px solid #008f83; outline-offset: 3px; }
.login-turnstile { min-width: 0; margin-bottom: 20px; padding: 16px 18px; border: 1px solid #b9e9df; border-radius: 12px; background: #effaf7; }
.login-turnstile > label { margin-bottom: 12px; color: #075d56; }
.login-turnstile .cf-turnstile { max-width: 100%; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 4px; border: 0; border-radius: 11px; background: #168f76; box-shadow: 0 12px 25px #008f8327; color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }
.login-submit:hover { background: #087b69; }
.login-submit span:last-child { font-size: 23px; font-weight: 400; line-height: 1; }
.login-card-footer { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #e8edf3; color: #64748b; font-size: 14px; text-align: center; }
.login-error { margin-bottom: 22px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: 14px; }
.service-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.service-tiles span { display: grid; place-items: center; min-width: 0; min-height: 68px; padding: 12px; border: 1px solid #dce4ee; border-radius: 14px; background: #fff; color: #0b5960; font-size: 18px; font-weight: 800; }

@media (max-width: 1050px) {
    .login-layout { display: block; }
    .login-showcase { min-height: 0; padding: 30px clamp(24px, 5vw, 48px); }
    .showcase-copy { margin: 32px 0 24px; padding: 0; }
    .showcase-copy h1 { font-size: clamp(42px, 6vw, 62px); }
    .showcase-features { margin-bottom: 15px; }
    .login-form-side { min-height: 0; padding: 36px 24px 50px; }
}

@media (max-width: 640px) {
    .login-showcase { padding: 22px 18px 24px; }
    .showcase-logo { width: 48px; height: 48px; border-radius: 11px; }
    .showcase-brand { gap: 12px; }
    .showcase-brand-copy strong { font-size: 24px; }
    .showcase-brand-copy small { max-width: 225px; margin-top: 2px; font-size: 12px; }
    .showcase-copy { margin: 24px 0 20px; }
    .showcase-kicker { font-size: 11px; letter-spacing: .08em; }
    .showcase-kicker::after { margin-top: 8px; }
    .showcase-copy h1 { margin: 17px 0 14px; font-size: clamp(32px, 8.7vw, 40px); line-height: 1.08; }
    .showcase-description { font-size: 14px; line-height: 1.45; }
    .showcase-features { gap: 7px 12px; margin-bottom: 11px; font-size: 11px; }
    .showcase-features span { gap: 5px; }
    .showcase-features i { width: 18px; height: 18px; font-size: 12px; }
    .login-showcase footer { font-size: 11px; }
    .login-form-side { padding: 20px 16px 32px; }
    .login-card { padding: 24px 20px; border-radius: 18px; }
    .login-card h2 { font-size: 27px; }
    .login-help { margin-bottom: 22px; font-size: 14px; }
    .service-tiles { gap: 8px; margin-top: 14px; }
    .service-tiles span { min-height: 58px; padding: 7px; font-size: 15px; }
}

@media (max-width: 390px) {
    .login-turnstile { padding: 12px; }
}
