html, body { margin: 0; min-height: 100%; }
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    color: #152033;
    background-color: #E7EEF6;
    background-image:
        radial-gradient(980px 620px at 16% 42%, rgba(255, 255, 255, .92), transparent 58%),
        radial-gradient(720px 520px at 18% 70%, rgba(26, 102, 238, .12), transparent 62%),
        radial-gradient(640px 420px at 100% 0%, rgba(26, 102, 238, .10), transparent 58%),
        radial-gradient(460px 340px at 0% 100%, rgba(91, 205, 171, .20), transparent 64%),
        linear-gradient(165deg, #F8FAFC 0%, #E4EDF7 100%);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(26, 70, 140, .07) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(ellipse at 28% 48%, #000 0%, transparent 68%);
}
.layout {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    align-items: center;
    column-gap: 56px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px 56px;
}
.intro { max-width: 520px; }
.brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.brand-link {
    display: block;
    line-height: 0;
    text-decoration: none;
}
.brand {
    display: block;
    height: 64px;
    width: auto;
}
.erp-input[readonly] {
    background: #F4F7FB;
    color: #5C6B7A;
    cursor: default;
}
.erp-input[readonly]:hover,
.erp-input[readonly]:focus {
    border-color: var(--line);
    box-shadow: none;
}
.tagline {
    margin: 0;
    padding-left: 16px;
    border-left: 2px solid rgba(28, 36, 48, .18);
    color: #1C2430;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
}
.tagline b {
    color: #F0A018;
    font-weight: 800;
}
.slogan {
    margin: 18px 0 0;
    font-size: clamp(26px, 2.4vw, 32px);
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #152033;
}
.slogan span {
    display: block;
    margin-top: 10px;
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1.25;
    letter-spacing: -0.045em;
    color: #1A66EE;
}
.sub {
    margin: 10px 0 0;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.55;
    color: #5C6B7E;
}
.stage {
    margin-top: 4px;
    max-width: 420px;
    height: 210px;
    overflow: hidden;
}
.stage img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -46px;
}
.panel { display: flex; justify-content: center; }
.panel .auth {
    position: relative;
    width: min(100%, 448px);
    padding: 36px 32px 28px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 24px;
    box-shadow:
        0 1px 2px rgba(20, 40, 80, .04),
        0 24px 48px rgba(28, 72, 140, .10);
    overflow: hidden;
}
.panel .auth::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #1A66EE, #5BCDAB);
}
.copyright {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 16px 22px;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    color: #8A94A6;
}
.copyright a {
    color: inherit;
    text-decoration: none;
}
.copyright a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.doc__foot { gap: 8px; }
.slider__fill {
    left: 2px;
    top: 2px;
    bottom: auto;
    height: 38px;
    border-radius: 6px 0 0 6px;
    background: #A9C8FF;
}
.slider.is-ok {
    border-color: #3EC978;
    background: #57D188;
}
.slider.is-ok .slider__fill { background: #57D188; }
.slider.is-ok .slider__text { color: #fff; }
.slider.is-ok .slider__knob {
    background: #fff;
    color: #18A058;
}
.legal-page { display: block; }
.legal-bar,
.legal-sheet { position: relative; z-index: 1; }
.legal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(800px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 0;
}
.legal-brand img { display: block; height: 48px; width: auto; }
.legal-sheet {
    width: min(800px, calc(100% - 32px));
    margin: 20px auto 28px;
    padding: 36px 40px 44px;
    background: #fff;
    border: 1px solid rgba(227, 232, 239, .9);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(20, 40, 80, .08);
}
.legal-sheet h1 {
    margin: 0 0 22px;
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.legal-sheet h2 {
    margin: 22px 0 8px;
    font-size: 16px;
    line-height: 1.4;
}
.legal-sheet h3 {
    margin: 14px 0 6px;
    font-size: 14px;
    line-height: 1.4;
}
.legal-sheet p,
.legal-sheet li {
    margin: 0 0 8px;
    color: #3E4A5C;
    font-size: 14px;
    line-height: 1.75;
}
.legal-sheet ul { margin: 0 0 8px; padding-left: 1.25em; }
.legal-page .copyright { padding-bottom: 28px; }
@media (max-width: 640px) {
    .legal-sheet { padding: 24px 18px 32px; }
    .legal-sheet h1 { font-size: 22px; }
}
@media (max-width: 980px) {
    .layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        row-gap: 20px;
        padding: 32px 20px 40px;
    }
    .intro,
    .below { display: contents; max-width: none; }
    .story { order: 1; }
    .sub { order: 2; margin-top: 0; }
    .panel { order: 3; }
    .stage { order: 4; }
    .slogan { font-size: clamp(22px, 5.2vw, 28px); }
    .slogan span { font-size: clamp(32px, 8vw, 44px); }
    .stage { max-width: 420px; height: 200px; margin-top: 8px; }
    .stage img { margin-top: -42px; }
    .panel { justify-content: stretch; }
    .panel .auth { width: 100%; }
}
@media (max-width: 640px) {
    .layout { padding: 24px 16px 32px; }
    .brand { height: 52px; }
    .brand-row { gap: 10px; }
    .tagline { font-size: 16px; padding-left: 10px; }
    .stage { height: 180px; }
    .panel .auth { padding: 28px 18px 22px; border-radius: 18px; }
}
