:root {
    color-scheme: light;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: #2b333d;
    background: #eef3f6;
}

* { box-sizing: border-box; }

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

body {
    min-width: 320px;
    background:
        radial-gradient(circle at 12% 14%, rgba(39, 135, 158, .18), transparent 34%),
        linear-gradient(145deg, #eaf1f4 0%, #f8fafb 56%, #edf2f5 100%);
}

button, input { font: inherit; }

.auth-shell {
    width: min(1180px, calc(100% - 48px));
    min-height: min(720px, calc(100vh - 64px));
    margin: 32px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(400px, .75fr);
    overflow: hidden;
    border: 1px solid rgba(23, 107, 135, .12);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(29, 50, 64, .16);
}

.auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 46px 54px 44px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(148deg, #104f63 0%, #176b87 58%, #27879e 100%);
}

.auth-intro::before,
.auth-intro::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .13);
}

.auth-intro::before { width: 460px; height: 460px; right: -220px; top: 70px; }
.auth-intro::after { width: 270px; height: 270px; left: -150px; bottom: 70px; }

.auth-brand,
.auth-intro__copy,
.auth-assurances { position: relative; z-index: 1; }

.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, .15); }
.auth-brand span { display: block; margin-bottom: 2px; color: rgba(255, 255, 255, .68); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.auth-brand h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .04em; }

.auth-intro__copy { margin: auto 0; max-width: 590px; padding: 64px 0; }
.auth-kicker { color: #9bd6e2; font-size: 12px; font-weight: 600; letter-spacing: .18em; }
.auth-intro__copy h2 { margin: 18px 0 24px; font-size: clamp(34px, 4vw, 52px); line-height: 1.28; letter-spacing: -.03em; white-space: pre-line; }
.auth-intro__copy p { max-width: 520px; margin: 0; color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.9; font-weight: 400; }

.auth-assurances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.auth-assurances div { padding: 16px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 12px; background: rgba(7, 42, 54, .22); backdrop-filter: blur(6px); }
.auth-assurances dt { margin-bottom: 6px; color: #fff; font-size: 13px; font-weight: 600; }
.auth-assurances dd { margin: 0; color: rgba(255, 255, 255, .66); font-size: 11px; line-height: 1.55; }

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px 54px;
    background: #fff;
}

.auth-card__heading > span { color: #176b87; font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.auth-card__heading h2 { margin: 10px 0 8px; font-size: 34px; line-height: 1.2; font-weight: 700; }
.auth-card__heading p { margin: 0; color: #4b5563; font-size: 14px; font-weight: 400; }

.auth-form { display: grid; gap: 22px; margin-top: 38px; }
.auth-form label > span:first-child { display: block; margin-bottom: 9px; color: #4b5563; font-size: 13px; font-weight: 500; }
.auth-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d7e0e7; border-radius: 8px; outline: none; background: #f8fafb; color: #2b333d; font-size: 15px; font-weight: 400; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-form input:focus { border-color: #176b87; background: #fff; box-shadow: 0 0 0 4px rgba(23, 107, 135, .11); }
.auth-form input::placeholder { color: #6b7280; font-weight: 400; opacity: 1; }
.auth-password { position: relative; display: block; }
.auth-password input { padding-right: 68px; }
.auth-password button { position: absolute; top: 6px; right: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 6px; color: #176b87; background: #e8f2f5; font-size: 12px; font-weight: 600; cursor: pointer; }
.auth-form__message { min-height: 20px; margin: -6px 0 -4px; color: #b44b4b; font-size: 13px; line-height: 1.5; font-weight: 700; }
.auth-form__message.is-success { color: #1f7a4c; }

.auth-submit { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border: 0; border-radius: 8px; color: #fff; background: linear-gradient(120deg, #176b87, #1f7f99); box-shadow: 0 12px 24px rgba(23, 107, 135, .22); font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(23, 107, 135, .27); }
.auth-submit:disabled { cursor: wait; opacity: .66; transform: none; }

.auth-card__help { margin-top: 28px; padding: 15px 16px; border: 1px solid #e0e7ed; border-radius: 8px; background: #f5f8fa; color: #4b5563; font-size: 12px; line-height: 1.7; }
.auth-card__help span, .auth-card__help strong { display: block; }
.auth-card__help strong { color: #344255; }
.auth-reset { margin-top: 20px; border: 1px solid #dce5eb; border-radius: 8px; background: #f8fafb; }
.auth-reset summary { padding: 13px 15px; color: #176b87; font-size: 13px; font-weight: 600; cursor: pointer; }
.auth-reset__form { display: grid; gap: 14px; padding: 2px 15px 15px; }
.auth-reset__form label > span { display: block; margin-bottom: 7px; color: #4b5563; font-size: 12px; font-weight: 500; }
.auth-reset__form input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d7e0e7; border-radius: 8px; background: #fff; color: #2b333d; font: inherit; font-weight: 400; }
.auth-reset__form .auth-submit { height: 46px; }
.auth-card__footer { margin: 28px 0 0; color: #59636f; font-size: 11px; line-height: 1.6; text-align: center; }
.auth-shell--message { display: flex; align-items: center; justify-content: center; background: transparent; box-shadow: none; border: 0; }
.auth-card--message { width: min(520px, 100%); min-height: 360px; border: 1px solid rgba(23, 107, 135, .12); border-radius: 16px; box-shadow: 0 24px 70px rgba(29, 50, 64, .14); }
.auth-card--message h1 { margin: 12px 0; font-size: 28px; }
.auth-submit--link { margin-top: 32px; text-decoration: none; }

@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; width: min(560px, calc(100% - 32px)); margin: 16px auto; min-height: calc(100vh - 32px); }
    .auth-intro { min-height: auto; padding: 26px 28px; }
    .auth-intro__copy { margin: 42px 0 34px; padding: 0; }
    .auth-intro__copy h2 { font-size: 30px; }
    .auth-intro__copy p { font-size: 14px; }
    .auth-assurances { display: none; }
    .auth-card { padding: 38px 28px 34px; }
}

@media (max-width: 480px) {
    .auth-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
    .auth-intro { padding: 22px 20px 24px; }
    .auth-brand img { width: 42px; height: 42px; }
    .auth-intro__copy { margin: 32px 0 8px; }
    .auth-intro__copy h2 { margin: 12px 0 14px; font-size: 26px; }
    .auth-intro__copy p { display: none; }
    .auth-card { justify-content: flex-start; padding: 34px 20px 28px; }
    .auth-card__heading h2 { font-size: 28px; }
    .auth-form { margin-top: 30px; }
}
