:root {
    color-scheme: light;
    --ink-900: #17242b;
    --ink-700: #344952;
    --ink-500: #6d7d84;
    --line: #d9e1e3;
    --surface: #ffffff;
    --surface-muted: #eef3f2;
    --brand: #0c5b55;
    --brand-strong: #084942;
    --focus: #d47632;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--surface-muted);
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: var(--ink-900);
    background:
            radial-gradient(circle at 50% 10%, rgba(12, 91, 85, 0.11), transparent 30rem),
            linear-gradient(145deg, #f5f8f7 0%, #e7eeed 100%);
    font-family:
            "Pretendard",
            "Noto Sans KR",
            "Apple SD Gothic Neo",
            "Malgun Gothic",
            sans-serif;
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-shell {
    width: min(31rem, 100%);
    min-height: 41rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2.75rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4rem) 2rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 1.75rem;
    background: var(--surface);
    box-shadow:
            0 2rem 5rem rgba(31, 54, 59, 0.15),
            0 0.35rem 1rem rgba(31, 54, 59, 0.08);
}

.login-content {
    width: 100%;
}

.company-logo {
    width: 8.25rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.company-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-heading {
    margin: 2.25rem 0 2.5rem;
    text-align: center;
}

.login-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.55rem);
    line-height: 1.18;
    letter-spacing: -0.055em;
}

.login-form {
    display: grid;
    gap: 1.25rem;
}

.login-message {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid;
    border-radius: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.5;
}

.login-message--error {
    border-color: #e1b8b8;
    color: #7d2525;
    background: #fff7f7;
}

.login-message--success {
    border-color: #acd1c9;
    color: #185d51;
    background: #f2fbf8;
}

.input-field {
    display: grid;
    gap: 0.6rem;
}

.input-field label {
    color: var(--ink-700);
    font-size: 0.88rem;
    font-weight: 700;
}

.input-field input {
    width: 100%;
    height: 3.35rem;
    padding: 0 1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    outline: none;
    color: var(--ink-900);
    background: #fbfcfc;
    transition:
            border-color 150ms ease,
            box-shadow 150ms ease,
            background-color 150ms ease;
}

.input-field input::placeholder {
    color: #9aa7ab;
}

.input-field input:hover {
    border-color: #b7c4c7;
    background: var(--surface);
}

.input-field input:focus-visible {
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 0.22rem rgba(12, 91, 85, 0.13);
}

.login-button {
    width: 100%;
    height: 3.5rem;
    margin-top: 0.5rem;
    border: 0;
    border-radius: 0.75rem;
    color: #ffffff;
    background: var(--brand);
    font-weight: 750;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 0.75rem 1.4rem rgba(12, 91, 85, 0.2);
    transition:
            background-color 150ms ease,
            transform 150ms ease;
}

.login-button:hover {
    background: var(--brand-strong);
}

.login-button:focus-visible {
    outline: 0.2rem solid rgba(212, 118, 50, 0.35);
    outline-offset: 0.2rem;
}

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

.copyright {
    margin-top: 3rem;
    color: var(--ink-500);
    font-size: 0.7rem;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 35rem) {
    .login-page {
        padding: 1rem;
    }

    .login-shell {
        min-height: calc(100vh - 2rem);
        min-height: calc(100dvh - 2rem);
        padding: 2rem 1.35rem 1.5rem;
        border-radius: 1.25rem;
    }

    .company-logo {
        width: 7.5rem;
        height: 3.6rem;
    }

    .login-heading {
        margin: 1.75rem 0 2rem;
    }

    .copyright {
        margin-top: 2.5rem;
    }
}

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