:root {
    --login-blue: #0a4ee4;
    --login-navy: #061d52;
    --login-field: #f3f5f8;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

.login-page {
    display: grid;
    min-height: 100vh;
    margin: 0;
    place-items: center;
    overflow-x: hidden;
    background: #fff;
    color: var(--login-navy);
    font-family: "Poppins", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    display: grid;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    grid-template-columns: minmax(0, 1fr) min(56vw, 91vh);
    overflow: hidden;
    background: #fff;
}

.login-form-panel {
    display: grid;
    min-width: 0;
    place-items: center;
    background: #fff;
    padding: 48px 72px;
}

.login-form-wrap { width: min(540px, 100%); }

.login-brand {
    display: block;
    width: 240px;
    margin: 0 auto 66px;
}

.login-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.login-form { display: grid; gap: 22px; }

.login-field { display: grid; gap: 6px; }

.login-field > label,
.login-label-row label {
    color: #151d2e;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-label-row a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--login-navy);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.login-label-row a:hover { color: var(--login-blue); }
.login-label-row a i { font-size: 14px; }

.login-field input {
    width: 100%;
    height: 59px;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    background: var(--login-field);
    color: #111827;
    padding: 0 13px;
    font: inherit;
    font-size: 15px;
    transition: border-color .2s ease, background .2s ease;
}

.login-field input:focus {
    border-color: transparent;
    outline: none;
    background: var(--login-field);
    box-shadow: none;
}

.login-password { position: relative; }
.login-password input { padding-right: 46px; }
.login-password button {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    place-items: center;
    background: transparent;
    color: #7c8798;
    cursor: pointer;
    font-size: 18px;
    transform: translateY(-50%);
}

.login-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #151d2e;
    cursor: pointer;
    font-size: 15px;
}

.login-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.login-remember i {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #b8bdc7;
    transition: background .2s ease;
}

.login-remember i::after {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: transform .2s ease;
}

.login-remember input:checked + i { background: var(--login-blue); }
.login-remember input:checked + i::after { transform: translateX(18px); }

.login-submit {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--login-blue);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease;
}

.login-submit:hover { background: #083fb8; }
.login-submit:disabled { cursor: wait; opacity: .72; }
.login-submit [hidden] { display: none !important; }

.login-verification-help {
    margin: -8px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.login-verification-help a {
    color: var(--login-blue);
    font-weight: 500;
    text-decoration: none;
}

.login-verification-help a:hover { text-decoration: underline; }

.auth-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    padding: 12px 13px 12px 16px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(6, 29, 82, .14);
    font-size: 13px;
    line-height: 1.5;
}

.auth-notice > span { min-width: 0; }
.auth-notice-error { background: linear-gradient(112deg, #b42318 0%, #991b1b 58%, #7f1d1d 100%); box-shadow: 0 8px 20px rgba(127, 29, 29, .16); }
.auth-notice-success { background: linear-gradient(112deg, #15803d 0%, #166534 58%, #14532d 100%); box-shadow: 0 8px 20px rgba(20, 83, 45, .18); }
.auth-notice a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.auth-notice-close {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}
.auth-notice-close:hover { background: rgba(255, 255, 255, .3); transform: scale(1.04); }
.auth-notice-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.auth-notice-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.recovery-form-wrap .login-brand { margin-bottom: 44px; }

.recovery-copy { margin-bottom: 34px; }

.recovery-copy h1 {
    margin: 0;
    color: var(--login-navy);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.recovery-copy p {
    max-width: 470px;
    margin: 13px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}

.recovery-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    color: #53617b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.recovery-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.recovery-retry { text-decoration: none; }

.recovery-back:hover { color: var(--login-blue); }

.activation-form-wrap .login-brand { margin-bottom: 42px; }

.activation-copy { margin-bottom: 28px; }

.activation-copy h1 {
    margin: 0;
    color: var(--login-navy);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.activation-copy p {
    max-width: 500px;
    margin: 7px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}

.activation-copy p strong {
    color: #344054;
    font-weight: 600;
}

.activation-form { gap: 17px; }

.login-field input.activation-readonly {
    color: #7c8798;
    cursor: not-allowed;
}

.activation-password-status {
    display: grid;
    gap: 9px;
    margin-top: -2px;
}

.activation-strength-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #667085;
    font-size: 12px;
}

.activation-strength-heading strong {
    color: #8b95a5;
    font-weight: 600;
}

.activation-strength-heading strong.is-ready { color: #1b8a57; }

.activation-strength-track {
    height: 5px;
    overflow: hidden;
    border-radius: 3px;
    background: #e8ebf0;
}

.activation-strength-track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #e25555;
    transition: width .2s ease, background-color .2s ease;
}

.activation-strength-track i[data-score="3"] { background: #d99a2b; }
.activation-strength-track i[data-score="4"] { background: #4f7ee8; }
.activation-strength-track i[data-score="5"] { background: #32a36b; }

.activation-password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.activation-password-rules li {
    position: relative;
    color: #98a2b3;
    font-size: 11px;
    line-height: 1.4;
}

.activation-password-rules li::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: #cbd0d8;
    content: "";
    vertical-align: 1px;
}

.activation-password-rules li.is-valid { color: #397759; }
.activation-password-rules li.is-valid::before { background: #32a36b; }

.activation-match-status {
    margin: 0;
    color: #8b95a5;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.activation-match-status.is-valid { color: #1b8a57; }
.activation-match-status.is-invalid { color: #c94a4a; }

.activation-submit:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.activation-copy-empty { margin-bottom: 30px; }

.activation-login-link {
    text-decoration: none;
}

.login-visual {
    min-width: 0;
    overflow: hidden;
    background: #0c2b53;
}

.login-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

@media (max-width: 760px) {
    .login-page { background: #fff; }
    .login-shell {
        width: 100%;
        height: auto;
        min-height: 100vh;
        grid-template-columns: 1fr;
    }
    .login-form-panel {
        align-items: start;
        justify-items: center;
        padding: 42px 24px;
    }
    .login-form-wrap { width: min(390px, 100%); }
    .login-brand { width: 190px; margin-bottom: 58px; }
    .recovery-form-wrap .login-brand { margin-bottom: 38px; }
    .activation-form-wrap .login-brand { margin-bottom: 38px; }
    .recovery-copy { margin-bottom: 30px; }
    .recovery-copy h1 { font-size: 30px; }
    .activation-copy { margin-bottom: 25px; }
    .activation-copy h1 { font-size: 30px; }
    .login-visual { display: none; }
    .login-field input { height: 58px; }
    .login-submit { min-height: 57px; }
}

@media (max-height: 620px) and (min-width: 761px) {
    .login-shell { height: 100vh; min-height: 480px; }
    .login-brand { margin-bottom: 34px; }
}
