:root {
    --login-clay: #ff5a4d;
    --login-clay-deep: #e23b2f;
    --login-clay-soft: #ffeae7;
    --login-clay-line: #ffd4cd;
    --login-bg: #fbf8f1;
    --login-bg-strong: #faf8f4;
    --login-card: #ffffff;
    --login-ink: #33323a;
    --login-muted: #696773;
    --login-line: #f0eee9;
    --login-gold: #f4b400;
    --login-shadow: 0 18px 45px rgba(120, 90, 60, 0.1);
    --login-focus: 0 0 0 4px rgba(255, 90, 77, 0.14);
    --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--login-ink);
    font-family: var(--font-sans);
    background: linear-gradient(180deg, var(--login-bg-strong) 0%, var(--login-bg) 100%);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px clamp(18px, 4vw, 54px) 18px;
}

.site-header {
    width: min(100%, 1080px);
    margin: 0 auto;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}

.brand-mark__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--login-clay);
    color: #fff;
    font-size: 21px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 5px 12px rgba(255, 90, 77, 0.24);
}

.brand-mark__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.05;
}

.brand-mark__text h1,
.brand-mark__text p {
    margin: 0;
}

.brand-mark__text h1 {
    color: var(--login-ink);
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-mark__label {
    color: var(--login-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.main-layout {
    flex: 1;
    width: min(100%, 1080px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: clamp(30px, 6vw, 72px);
    align-items: center;
    padding: 34px 0 28px;
}

.showcase-panel {
    min-width: 0;
}

.showcase-panel__copy {
    max-width: 540px;
}

.eyebrow,
.login-card__eyebrow {
    margin: 0 0 14px;
    color: var(--login-clay);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow--preserve-case {
    text-transform: none;
}

.showcase-panel__copy h2,
.login-card h2 {
    margin: 0;
    color: var(--login-ink);
    line-height: 1.18;
    letter-spacing: 0;
}

.showcase-panel__copy h2 {
    max-width: 12ch;
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    font-weight: 900;
}

.showcase-panel__title-line {
    display: block;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.feature-pills span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--login-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--login-muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.feature-pills span:first-child {
    border-color: var(--login-clay-line);
    background: var(--login-clay-soft);
    color: var(--login-clay-deep);
}

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

.login-card {
    width: 100%;
    border: 1px solid var(--login-line);
    border-radius: 16px;
    background: var(--login-card);
    box-shadow: var(--login-shadow);
    padding: clamp(24px, 4vw, 34px);
}

.login-card h2 {
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    font-weight: 900;
}

.login-card__intro {
    margin: 14px 0 0;
    color: var(--login-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.login-form {
    margin-top: 28px;
}

.form-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--login-clay-line);
    border-radius: 14px;
    background: var(--login-clay-soft);
    color: #ad3028;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.5;
}

.field {
    display: block;
    margin-bottom: 18px;
}

.field span {
    display: block;
    margin-bottom: 8px;
    color: var(--login-ink);
    font-size: 0.9rem;
    font-weight: 900;
}

.field input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--login-line);
    border-radius: 14px;
    background: #fff;
    color: var(--login-ink);
    padding: 0 14px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input::placeholder {
    color: #a8a5ad;
}

.field input:hover {
    border-color: var(--login-clay-line);
}

.field input:focus {
    border-color: var(--login-clay);
    box-shadow: var(--login-focus);
    background: #fff;
}

.login-button {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: var(--login-clay);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 4px 0 var(--login-clay-deep);
    transition: background 0.15s ease, box-shadow 0.1s ease, transform 0.1s ease;
}

.login-button:hover {
    background: var(--login-clay-deep);
}

.login-button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--login-clay-deep);
}

.login-card__note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    color: var(--login-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.dot {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--login-gold);
}

.site-footer {
    width: min(100%, 1080px);
    margin: 0 auto;
    color: var(--login-muted);
    font-size: 0.82rem;
}

.site-footer__tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

@media (max-width: 820px) {
    .page-shell {
        padding: 20px 16px 16px;
    }

    .site-header {
        display: flex;
        justify-content: center;
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 26px;
        align-content: center;
        padding: 34px 0 24px;
    }

    .showcase-panel__copy {
        max-width: none;
        text-align: center;
    }

    .showcase-panel__copy h2 {
        max-width: none;
        font-size: clamp(2.05rem, 12vw, 3rem);
    }

    .feature-pills {
        justify-content: center;
        margin-top: 22px;
    }

    .login-card {
        max-width: 460px;
    }

    .site-footer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-layout {
        padding-top: 26px;
    }

    .login-panel,
    .login-card {
        width: 100%;
    }

    .login-card {
        padding: 22px 18px;
    }

    .feature-pills span {
        flex: 1 1 30%;
        justify-content: center;
        min-width: 0;
        padding: 0 10px;
        font-size: 0.84rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.001ms !important;
    }
}

.showcase-panel__mascot {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
    padding-left: 6px;
}

.showcase-panel__mascot img {
    width: min(100%, 230px);
    height: auto;
    aspect-ratio: 920 / 1332;
    filter: drop-shadow(0 10px 22px rgba(120, 90, 60, 0.16));
}

@media (max-width: 860px) {
    .showcase-panel__mascot {
        justify-content: center;
        margin-top: 16px;
        padding-left: 0;
    }
    .showcase-panel__mascot img {
        width: min(48%, 170px);
    }
}
