:root {
    color-scheme: light;
    --brand: #1ab394;
    --brand-dark: #148c75;
    --ink: #17232f;
    --muted: #657281;
    --line: #dfe5e9;
    --surface: #ffffff;
    --background: #f3f3f4;
    --danger-bg: #fff1f1;
    --danger-text: #a73232;
    --font-size-step: 1pt;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 12%, rgb(26 179 148 / 12%), transparent 32rem),
        var(--background);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    width: min(920px, calc(100% - 40px));
    min-height: 520px;
    margin: 8vh auto 32px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgb(23 35 47 / 8%);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgb(23 35 47 / 12%);
}

.login-intro,
.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px;
}

.login-intro {
    position: relative;
    isolation: isolate;
    color: #ffffff;
    background: linear-gradient(145deg, #173b47 0%, #1a6b68 58%, var(--brand) 130%);
}

.login-intro::after {
    position: absolute;
    z-index: -1;
    right: -110px;
    bottom: -145px;
    width: 330px;
    height: 330px;
    content: "";
    border: 56px solid rgb(255 255 255 / 7%);
    border-radius: 50%;
}

.brand-logo {
    align-self: flex-start;
    width: 164px;
    height: auto;
    max-width: 100%;
    margin-bottom: 38px;
    object-fit: contain;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: calc(12px + var(--font-size-step));
    font-weight: 800;
    letter-spacing: 0.16em;
}

.login-intro .eyebrow {
    color: #80e0cb;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: calc(clamp(34px, 5vw, 48px) + var(--font-size-step));
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.intro-copy {
    margin-bottom: 0;
    color: rgb(255 255 255 / 78%);
    font-size: calc(15px + var(--font-size-step));
    line-height: 1.85;
}

.company-endorsement {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-top: 34px;
    padding: 8px 12px;
    background: rgb(255 255 255 / 6%);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 8px;
}

.company-endorsement > span {
    color: rgb(255 255 255 / 58%);
    font-size: calc(10px + var(--font-size-step));
    font-weight: 700;
    letter-spacing: .08em;
}

.company-endorsement img {
    width: auto;
    height: 42px;
    object-fit: contain;
}

.login-card {
    background: var(--surface);
}

.card-heading {
    margin-bottom: 30px;
}

.card-heading h2 {
    margin-bottom: 10px;
    font-size: calc(28px + var(--font-size-step));
    letter-spacing: -0.03em;
}

.card-heading > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: calc(14px + var(--font-size-step));
}

.field {
    margin-bottom: 19px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #364554;
    font-size: calc(13px + var(--font-size-step));
    font-weight: 700;
}

input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: var(--ink);
    background: #fbfcfc;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus {
    background: #ffffff;
    border-color: #58ad9b;
    box-shadow: 0 0 0 1px rgb(26 179 148 / 14%);
}

button {
    width: 100%;
    height: 48px;
    margin-top: 4px;
    color: #ffffff;
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    font-size: calc(15px + var(--font-size-step));
    font-weight: 800;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease;
}

button:hover {
    background: var(--brand-dark);
}

button:active {
    transform: translateY(1px);
}

.alert {
    margin: -8px 0 22px;
    padding: 12px 14px;
    color: var(--danger-text);
    background: var(--danger-bg);
    border: 1px solid #f0caca;
    border-radius: 8px;
    font-size: calc(13px + var(--font-size-step));
    line-height: 1.5;
}

.migration-note {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: calc(12px + var(--font-size-step));
    line-height: 1.6;
    text-align: center;
}

footer {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto 32px;
    color: #7a8691;
    font-size: calc(12px + var(--font-size-step));
    text-align: center;
}

@media (max-width: 760px) {
    .login-shell {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .login-intro,
    .login-card {
        padding: 36px 28px;
    }

    .brand-logo {
        width: 150px;
        margin-bottom: 28px;
    }

    .company-endorsement {
        margin-top: 22px;
    }

    .company-endorsement img {
        height: 36px;
    }
}

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