*, *::before, *::after { box-sizing: border-box; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: #142238;
    background: #fff;
    font: 15px/1.5 system-ui, "Segoe UI", sans-serif;
}

a { color: #075fdf; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #276fe0; outline-offset: 3px; }

.login-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 36px);
    padding: 26px 18px 36px;
    background: radial-gradient(ellipse at 50% 85%, #f3f7ff, #fbfcfe 60%, #fff);
}

.login-wave {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: clamp(200px, 34vw, 390px);
    height: auto;
    pointer-events: none;
}
.login-wave-end { inset: auto 0 0 auto; transform: rotate(180deg); }

.login-brand {
    position: relative;
    display: block;
    width: 240px;
    height: 49px;
    overflow: hidden;
    border-radius: 5px;
    mix-blend-mode: multiply;
}
.login-brand img { position: absolute; width: 292px; height: auto; top: -24px; left: -26px; }

.login-card {
    width: min(100%, 536px);
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid #e5edfa;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 40px #194f9b12;
}
.login-card header { text-align: center; margin-bottom: 30px; }
.login-card h1 { margin: 0; font-size: clamp(28px, 4vw, 34px); line-height: 1.2; letter-spacing: -.9px; }
.login-card header p { margin: 7px 0 0; color: #53627a; font-size: 16px; }

.login-form { display: grid; gap: 16px; }
.login-field { position: relative; }
.login-field > i {
    position: absolute;
    z-index: 1;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #66758e;
    pointer-events: none;
}
.login-field input {
    display: block;
    width: 100%;
    min-height: 50px;
    border: 1px solid #d6dfec;
    border-radius: 12px;
    padding: 10px 15px 10px 46px;
    background: #fff;
    color: #142238;
    font: inherit;
    font-size: 16px;
}
.login-field input::placeholder { color: #53627a; }
.login-password-field input { padding-right: 52px; }
.login-password-hint { margin: -6px 0 0; color: #53627a; font-size: 13px; }
.login-password-toggle {
    position: absolute;
    inset: 3px 4px 3px auto;
    width: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #53627a;
    font-size: 16px;
    cursor: pointer;
}
.login-password-toggle:hover { background: #edf4ff; }

.login-submit, .login-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 10px 14px;
    border-radius: 12px;
    font: inherit;
    font-weight: 650;
}
.login-submit { border: 1px solid #0659e1; color: #fff; background: linear-gradient(#216df2, #0759e6); cursor: pointer; }
.login-submit:hover { background: #0754d5; }
.login-google { gap: 12px; border: 1px solid #cbd4e1; color: #202124; background: #fff; }
.login-google:hover { background: #f5f8ff; text-decoration: none; }

.login-divider { display: flex; align-items: center; gap: 18px; margin: 14px 0; color: #53627a; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; border-top: 1px solid #e0e7f1; }
.login-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin-top: 24px; font-size: 14px; }
.login-message { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: #edf5ff; color: #254776; }
.login-error { background: #fff1ef; color: #982a26; }

.login-footer { border-top: 1px solid #e6edf7; background: #fff; }
.login-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    flex-wrap: wrap;
    width: min(1056px, calc(100% - 36px));
    margin-inline: auto;
    padding-block: 12px;
    color: #53627a;
}
.login-footer-brand { width: 120px; height: 25px; }
.login-footer-brand img { width: 146px; top: -12px; left: -13px; }
.login-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.login-footer a { font-size: 13px; color: #465971; }

.login-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .login-brand:not(.login-footer-brand) { width: 204px; height: 42px; }
    .login-brand:not(.login-footer-brand) img { width: 248px; top: -20px; left: -22px; }
    .login-card header { margin-bottom: 24px; }
}
