:root {
    --blue: #3157e5;
    --blue-dark: #2444bf;
    --navy: #17213d;
    --text: #24304a;
    --muted: #69728a;
    --line: #dfe4f0;
    --surface: #ffffff;
    --background: #f4f6fb;
    --success: #16875a;
    --danger: #b4233b;
    --shadow: 0 18px 50px rgba(32, 48, 92, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.button:focus-visible,
input:focus-visible,
.brand:focus-visible {
    outline: 3px solid rgba(49, 87, 229, 0.3);
    outline-offset: 3px;
}

.button-primary {
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 8px 18px rgba(49, 87, 229, 0.2);
}

.button-primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 10px 22px rgba(49, 87, 229, 0.25);
}

.button-secondary {
    color: var(--navy);
    background: #ffffff;
    border-color: var(--line);
}

.button-secondary:hover {
    color: var(--blue);
    border-color: #b9c6f7;
    background: #f8f9ff;
}

.button-small {
    min-height: 40px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at top left, rgba(49, 87, 229, 0.11), transparent 34rem),
        var(--background);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 32px 20px;
}

.login-card {
    width: min(100%, 440px);
    padding: 38px;
    border: 1px solid rgba(223, 228, 240, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.login-heading {
    margin: 38px 0 26px;
}

.login-heading h1,
.project-intro h1,
.section-heading h2 {
    margin: 0;
    color: var(--navy);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.login-heading h1 {
    font-size: clamp(1.85rem, 5vw, 2.35rem);
}

.login-heading > p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
}

.login-form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    color: var(--navy);
    border: 1px solid #cbd3e3;
    border-radius: 9px;
    background: #ffffff;
}

.field input:hover {
    border-color: #aab5cc;
}

.notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 0.9rem;
}

.notice-error {
    color: #7c1628;
    border: 1px solid #f0bcc6;
    background: #fff2f4;
}

.notice-info {
    color: #244269;
    border: 1px solid #c9dcf5;
    background: #f2f7fd;
}

.login-support {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.panel-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.panel-header {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
}

.header-inner {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-inner form {
    margin: 0;
}

.panel-main {
    flex: 1;
    padding: 64px 0 72px;
    background:
        radial-gradient(circle at 85% 5%, rgba(49, 87, 229, 0.09), transparent 26rem),
        var(--background);
}

.project-intro {
    max-width: 730px;
}

.project-intro h1 {
    font-size: clamp(2rem, 5vw, 3.35rem);
}

.project-intro > p:last-child {
    max-width: 650px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.models-section {
    margin-top: 54px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.section-heading h2 {
    max-width: 650px;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.preview-note {
    max-width: 260px;
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: right;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.model-card {
    position: relative;
    display: flex;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 14px 38px rgba(32, 48, 92, 0.08);
}

.model-number {
    display: grid;
    width: 82px;
    flex: 0 0 82px;
    place-items: center;
    color: rgba(49, 87, 229, 0.2);
    background: linear-gradient(180deg, #f4f7ff, #edf1ff);
    font-size: 3.2rem;
    font-weight: 850;
}

.model-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
}

.model-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 25px;
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.model-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.model-content h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.55rem;
    letter-spacing: -0.025em;
}

.model-content > p:not(.model-status) {
    margin: 12px 0 28px;
    color: var(--muted);
}

.model-content .button {
    width: 100%;
    margin-top: auto;
}

.evaluation-note {
    display: flex;
    gap: 7px;
    margin-top: 22px;
    padding: 16px 18px;
    color: #545f75;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.evaluation-note strong {
    color: var(--navy);
}

.panel-footer {
    color: #c8d0e0;
    background: var(--navy);
}

.panel-footer p {
    margin: 0;
    padding: 25px 0;
    font-size: 0.84rem;
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 32px, 620px);
    }

    .header-inner {
        min-height: 68px;
    }

    .header-inner .brand span {
        display: none;
    }

    .panel-main {
        padding: 44px 0 54px;
    }

    .models-section {
        margin-top: 40px;
    }

    .section-heading {
        display: block;
    }

    .preview-note {
        max-width: none;
        margin-top: 12px;
        text-align: left;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }

    .model-card {
        min-height: 300px;
    }
}

@media (max-width: 420px) {
    .login-shell {
        padding: 18px 14px;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .login-heading {
        margin-top: 30px;
    }

    .container {
        width: calc(100% - 28px);
    }

    .button-small {
        min-height: 42px;
        padding-inline: 12px;
    }

    .model-card {
        display: block;
    }

    .model-number {
        width: 100%;
        height: 58px;
        font-size: 2rem;
    }

    .model-content {
        min-height: 278px;
        padding: 24px;
    }

    .model-status {
        margin-bottom: 18px;
        font-size: 0.72rem;
    }

    .evaluation-note {
        display: block;
    }
}

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