/* Login page layout and form components. */
.login-page {
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 15% 10%, #fff 0, #f6faff 38%, #edf5ff 100%);
}

.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(107, 159, 235, 0.12);
    border-radius: 50%;
}

.login-page::before {
    width: 670px;
    height: 670px;
    right: -230px;
    top: -230px;
}

.login-page::after {
    width: 370px;
    height: 370px;
    left: -190px;
    bottom: -190px;
    border-color: rgba(107, 159, 235, 0.1);
}

.login-orbit {
    position: absolute;
    border: 1px solid rgba(107, 159, 235, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.login-orbit--one {
    width: 480px;
    height: 480px;
    right: -125px;
    top: -130px;
}

.login-orbit--two {
    width: 270px;
    height: 270px;
    left: -112px;
    bottom: -105px;
}

.login-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(460px, 1.08fr) minmax(440px, 0.92fr);
    gap: clamp(48px, 6vw, 104px);
    min-height: 100vh;
    max-width: 1280px;
    margin: auto;
    padding: 54px 32px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.brand-mark > span:last-child > span {
    color: var(--blue);
}

.brand-mark__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 46px;
    padding: 4px;
    border: 1px solid rgba(20, 36, 61, 0.08);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(55, 77, 112, 0.12);
    overflow: hidden;
}

.brand-mark__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-intro > .brand-mark {
    margin: 0 0 38px;
}

.login-intro .intro-copy {
    margin: 0;
    transform: none;
}

.intro-copy {
    max-width: 520px;
    margin: auto 0;
    transform: translateY(-10px);
}

.eyebrow,
.card-kicker {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.eyebrow span {
    display: inline-block;
    width: 24px;
    height: 2px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--blue);
}

.intro-copy h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(40px, 4.2vw, 62px);
    line-height: 1.09;
    letter-spacing: -3px;
}

.intro-copy h1 em {
    color: var(--blue);
    font-style: normal;
}

.intro-description {
    max-width: 405px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.intro-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.intro-footer p {
    margin: 0;
}

.intro-footer strong {
    color: var(--ink);
}

.avatar-stack {
    display: flex;
    padding-left: 9px;
}

.avatar-stack span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: -9px;
    border: 2px solid #f5f9ff;
    border-radius: 50%;
    color: #2464c8;
    background: #d9eaff;
    font-size: 9px;
    font-weight: 750;
}

.avatar-stack span:nth-child(2) {
    color: #2d8a81;
    background: #d8f1ed;
}

.avatar-stack span:nth-child(3) {
    color: #9d6c2b;
    background: #ffebcc;
}

.avatar-stack span:last-child {
    color: #fff;
    background: var(--blue);
}

.login-panel {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.login-card {
    width: 100%;
    min-width: 0;
    max-width: 500px;
    padding: 48px 50px 44px;
    border: 1px solid rgba(217, 228, 243, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 65px rgba(44, 87, 145, 0.1);
}

#login-form .submit-button {
    margin-top: 18px;
}

.mobile-brand {
    display: none;
}

.card-heading h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.8px;
}

.card-heading > p:last-child {
    margin: 10px 0 30px;
    color: var(--muted);
    font-size: 13px;
}

.field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
}

.field-label {
    display: block;
    margin-bottom: 9px;
    color: #3f5069;
    font-size: 12px;
    font-weight: 700;
}

.field-wrap {
    position: relative;
}

.field-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 43px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
    color: var(--ink);
    background: #fbfdff;
    font-size: 13px;
    transition: 0.2s ease;
}

.field-wrap input:focus {
    border-color: #75a8f3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(54, 121, 232, 0.1);
}

.field-wrap input::placeholder {
    color: #a1adbd;
}

.field-icon {
    position: absolute;
    top: 17px;
    left: 16px;
    color: #9aa9bc;
    font-size: 15px;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 50px;
    border: 0;
    color: #a0adbd;
    background: transparent;
    cursor: pointer;
}

.text-link {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 25px;
    color: #738198;
    font-size: 12px;
    cursor: pointer;
}

.remember-me input {
    position: absolute;
    opacity: 0;
}

.checkmark {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border: 1px solid #cad7e7;
    border-radius: 4px;
    color: #fff;
    font-size: 9px;
}

.remember-me input:checked + .checkmark {
    border-color: var(--blue);
    background: var(--blue);
}

.support-copy {
    margin: 25px 0 0;
    color: #8b98aa;
    text-align: center;
    font-size: 11px;
}

.copyright {
    margin: 25px 0 0;
    color: #94a1b4;
    font-size: 10px;
}

.copyright span {
    padding: 0 5px;
    color: #c4cfdd;
}

.login-alert {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #ffd7d7;
    border-radius: 7px;
    color: #b94141;
    background: #fff5f5;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 1050px) {
    .login-layout {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .login-intro {
        display: none;
    }

    .login-panel {
        min-height: calc(100vh - 56px);
    }

    .login-card {
        max-width: 510px;
        padding: 32px 28px 28px;
    }

    .mobile-brand {
        display: inline-flex;
        margin-bottom: 42px;
    }

    .copyright {
        margin-top: 18px;
    }
}

@media (max-width: 420px) {
    .login-card {
        padding: 26px 20px 23px;
    }

    .card-heading h2 {
        font-size: 25px;
    }

    .mobile-brand {
        margin-bottom: 31px;
    }

    .field-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .field-heading .text-link {
        max-width: 145px;
        line-height: 1.35;
        text-align: right;
    }
}
