:root {
    --auth-bg: #f6f8fb;
    --auth-surface: #fff;
    --auth-ink: #101828;
    --auth-muted: #667085;
    --auth-line: #e7eaf0;
    --auth-brand: #3858f6;
    --auth-brand-deep: #172b85;
    --auth-mint: #24c69a;
    --auth-soft: #eef1ff;
    --auth-dark: #09132e;
    --auth-danger: #b42318;
    --auth-success: #087a5b;
    --auth-shadow: 0 30px 80px rgba(16, 24, 40, .12);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.auth-site-header {
    position: relative;
    z-index: 10;
    height: 76px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(231, 234, 240, .92);
    backdrop-filter: blur(18px);
}
.auth-site-header__inner {
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.auth-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.auth-brand__symbol {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(145deg, var(--auth-brand), #7a5cff);
    box-shadow: 0 10px 24px rgba(56, 88, 246, .3);
}
.auth-brand__symbol i { transform: rotate(-8deg); }
.auth-brand__word { font-size: 21px; letter-spacing: -.04em; }
.auth-brand__word em { color: var(--auth-brand); font-style: normal; }
.auth-site-nav { display: flex; align-items: center; gap: 12px; color: var(--auth-muted); font-size: 14px; }
.auth-site-nav__home { display: inline-flex; align-items: center; gap: 6px; padding: 10px; color: #344054; font-weight: 650; }
.auth-site-nav__home:hover { color: var(--auth-brand); }
.auth-site-nav__button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 11px;
    color: #fff;
    background: var(--auth-brand);
    box-shadow: 0 10px 24px rgba(56, 88, 246, .2);
    font-weight: 750;
}
.auth-site-nav__button:hover { background: #2949e8; transform: translateY(-1px); }

.sass-auth {
    position: relative;
    min-height: calc(100vh - 76px);
    padding: 56px 20px 68px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 15%, rgba(36, 198, 154, .11), transparent 29%),
        radial-gradient(circle at 82% 10%, rgba(111, 91, 255, .12), transparent 30%),
        linear-gradient(180deg, #fff 0%, #f6f8ff 100%);
}
.sass-auth::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(56, 88, 246, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 88, 246, .035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
    pointer-events: none;
}
.sass-auth__layout {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: 64px;
}
.sass-auth__layout--login { grid-template-columns: minmax(0, 1.05fr) minmax(400px, .72fr); }

.sass-auth__story { max-width: 560px; }
.sass-auth__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-brand);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .16em;
}
.sass-auth__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--auth-mint); }
.sass-auth__story h1 { margin: 22px 0 18px; font-size: clamp(38px, 4vw, 54px); line-height: 1.1; letter-spacing: -.055em; }
.sass-auth__story h1 span {
    display: block;
    color: transparent;
    background: linear-gradient(90deg, var(--auth-brand), #7654ef);
    background-clip: text;
    -webkit-background-clip: text;
}
.sass-auth__story > p { max-width: 540px; margin: 0; color: var(--auth-muted); font-size: 16px; line-height: 1.85; }
.sass-auth__benefits { display: grid; gap: 13px; margin-top: 30px; }
.sass-auth__benefits > div { display: flex; align-items: center; gap: 14px; color: #344054; }
.sass-auth__benefits > div > i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe4ff;
    border-radius: 12px;
    color: var(--auth-brand);
    background: rgba(255, 255, 255, .78);
    font-size: 19px;
}
.sass-auth__benefits span, .sass-auth__trust span { display: flex; flex-direction: column; gap: 3px; }
.sass-auth__benefits strong { font-size: 14px; }
.sass-auth__benefits small, .sass-auth__trust small { color: var(--auth-muted); font-size: 12px; }
.sass-auth__trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 15px 17px;
    border: 1px solid rgba(36, 198, 154, .25);
    border-radius: 14px;
    background: rgba(235, 255, 249, .68);
}
.sass-auth__trust > i { color: #12a77d; font-size: 22px; }
.sass-auth__trust strong { color: #166b56; font-size: 13px; }

.sass-auth__panel {
    width: min(440px, 100%);
    margin-left: auto;
    padding: 34px;
    border: 1px solid rgba(222, 226, 237, .92);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--auth-shadow);
}
.sass-auth__panel--wide { width: min(650px, 100%); }
.sass-auth__panel--login { width: min(450px, 100%); padding: 38px; }
.sass-auth__heading { display: flex; align-items: center; gap: 15px; margin: 0 0 27px; text-align: left; }
.sass-auth__heading-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--auth-soft);
    color: var(--auth-brand);
    font-size: 23px;
}
.sass-auth__heading > div > span { color: var(--auth-brand); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sass-auth__heading h2 { margin: 3px 0 2px; font-size: 25px; letter-spacing: -.035em; }
.sass-auth__heading p { margin: 0; color: var(--auth-muted); font-size: 13px; }

.sass-auth form > label, .sass-auth__grid label { display: block; margin: 0 0 16px; }
.sass-auth__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.sass-auth label > span:first-child { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.sass-auth label > span b { color: var(--auth-brand); }
.sass-auth input:not([type="checkbox"]) {
    display: block;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #d8dde7;
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: var(--auth-ink);
    transition: border-color .18s, box-shadow .18s;
}
.sass-auth input::placeholder { color: #a5adbb; }
.sass-auth input:not([type="checkbox"]):focus { border-color: var(--auth-brand); box-shadow: 0 0 0 3px rgba(56, 88, 246, .12); }
.sass-auth__input { position: relative; }
.sass-auth__input > i { position: absolute; left: 13px; top: 50%; z-index: 1; color: #98a2b3; transform: translateY(-50%); }
.sass-auth__input input { padding-left: 39px !important; }
.sass-auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sass-auth__grid-spacer { display: block; }
.sass-auth__agreement {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;
    margin: 2px 0 18px !important;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.6;
    cursor: pointer;
}
.sass-auth__agreement input { width: 16px; height: 16px; flex: 0 0 16px; margin: 2px 0 0; accent-color: var(--auth-brand); }
.sass-auth__agreement > span { display: inline !important; margin: 0 !important; color: var(--auth-muted) !important; font-weight: 500 !important; }
.sass-auth__agreement a { color: var(--auth-brand); font-weight: 750; }
.sass-auth__agreement a:hover { text-decoration: underline; }
.sass-auth__form-tools { display: flex; justify-content: space-between; gap: 16px; margin: -2px 0 18px; color: #98a2b3; font-size: 12px; }
.sass-auth__form-tools a { color: var(--auth-brand); font-weight: 700; }
.sass-auth__submit,
.sass-auth > .sass-auth__panel form button[type="submit"] {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-brand);
    color: #fff;
    box-shadow: 0 12px 28px rgba(56, 88, 246, .24);
    font-weight: 750;
    cursor: pointer;
    transition: background .18s, transform .18s;
}
.sass-auth__submit:hover,
.sass-auth > .sass-auth__panel form button[type="submit"]:hover { background: #2949e8; transform: translateY(-1px); }
.sass-auth__submit:disabled,
.sass-auth > .sass-auth__panel form button[type="submit"]:disabled { opacity: .65; cursor: wait; transform: none; }
.sass-auth__message { min-height: 20px; margin-top: 14px; font-size: 13px; text-align: center; }
.sass-auth__message.is-error { color: var(--auth-danger); }
.sass-auth__message.is-success { color: var(--auth-success); }
.sass-auth__footer { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 7px; padding-top: 19px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); font-size: 13px; }
.sass-auth__footer a { display: inline-flex; align-items: center; gap: 4px; color: var(--auth-brand); font-weight: 750; }

.sass-auth__preview { margin-top: 32px; overflow: hidden; border: 1px solid rgba(214, 219, 232, .9); border-radius: 18px; background: rgba(255, 255, 255, .88); box-shadow: 0 24px 60px rgba(37, 47, 97, .14); }
.sass-auth__preview-top { height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--auth-line); font-size: 11px; }
.sass-auth__preview-top > span { display: flex; gap: 5px; }
.sass-auth__preview-top i { width: 8px; height: 8px; display: block; border-radius: 50%; background: #d0d5dd; }
.sass-auth__preview-top i:first-child { background: #ff857e; }
.sass-auth__preview-top i:nth-child(2) { background: #ffcf5c; }
.sass-auth__preview-top i:last-child { background: #45d7a4; }
.sass-auth__preview-top b { color: #344054; }
.sass-auth__preview-top em { margin-left: auto; color: #12a77d; font-style: normal; }
.sass-auth__preview-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; }
.sass-auth__preview-body span { min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; border: 1px solid var(--auth-line); border-radius: 12px; color: #344054; font-size: 12px; }
.sass-auth__preview-body i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--auth-brand); background: var(--auth-soft); font-size: 16px; }

/* Keep the password recovery pages compatible with the same visual language. */
.sass-auth > .sass-auth__panel { position: relative; z-index: 1; margin: auto; }
.sass-auth > .sass-auth__panel > header:not(.sass-auth__heading) { margin-bottom: 24px; text-align: center; }
.sass-auth__mark { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, var(--auth-brand), #7a5cff); font-weight: 800; }
.sass-auth > .sass-auth__panel h1 { margin: 14px 0 4px; font-size: 24px; }
.sass-auth > .sass-auth__panel header p { margin: 0; color: var(--auth-muted); font-size: 13px; }
.sass-auth > .sass-auth__panel nav { display: flex; justify-content: center; margin-top: 16px; }
.sass-auth > .sass-auth__panel nav a { color: var(--auth-brand); font-size: 13px; font-weight: 700; }

@media (max-width: 980px) {
    .sass-auth { padding-top: 44px; }
    .sass-auth__layout, .sass-auth__layout--login { width: min(680px, 100%); grid-template-columns: 1fr; gap: 36px; }
    .sass-auth__story { max-width: none; text-align: center; }
    .sass-auth__story > p { margin-left: auto; margin-right: auto; }
    .sass-auth__story h1 span { display: inline; }
    .sass-auth__benefits { grid-template-columns: repeat(3, 1fr); text-align: left; }
    .sass-auth__benefits > div { align-items: flex-start; }
    .sass-auth__trust { width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
    .sass-auth__panel, .sass-auth__panel--wide, .sass-auth__panel--login { width: 100%; margin: 0; }
    .sass-auth__layout--login .sass-auth__story { display: none; }
}

@media (max-width: 680px) {
    .auth-site-header { height: 68px; }
    .auth-site-header__inner { width: calc(100% - 28px); }
    .auth-site-nav > span, .auth-site-nav__home { display: none; }
    .auth-site-nav__button { min-height: 40px; padding: 0 14px; }
    .sass-auth { min-height: calc(100vh - 68px); padding: 34px 14px 46px; }
    .sass-auth__story { text-align: left; }
    .sass-auth__story h1 { margin-top: 17px; font-size: 34px; }
    .sass-auth__story h1 span { display: block; }
    .sass-auth__story > p { font-size: 14px; }
    .sass-auth__benefits { display: none; }
    .sass-auth__trust { width: 100%; margin-top: 20px; }
    .sass-auth__panel, .sass-auth__panel--wide, .sass-auth__panel--login { padding: 25px 20px; border-radius: 18px; }
    .sass-auth__grid { grid-template-columns: 1fr; }
    .sass-auth__grid-spacer { display: none; }
    .sass-auth__heading { align-items: flex-start; margin-bottom: 24px; }
    .sass-auth__heading h2 { font-size: 22px; }
    .sass-auth__form-tools { align-items: flex-start; }
    .sass-auth__footer { flex-wrap: wrap; text-align: center; }
}
