@import url("https://fonts.googleapis.com/css2?family=Inter:wght@600;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap");

:root {
    --login-deep-green: #153a34;
    --login-green: #214c44;
    --login-lime: #d9f36a;
    --login-mint: #ddf7ed;
    --login-mint-hover: #c9f0e1;
    --login-background: #f5f7f5;
    --login-surface: #ffffff;
    --login-text: #17332c;
    --login-muted: #71807b;
    --login-line: #dde6e2;
    --login-error: #c23b38;
    --login-error-bg: #fff2f1;
    --login-focus: rgba(21, 58, 52, 0.16);
}

* {
    box-sizing: border-box;
}

.login-page {
    min-width: 320px;
    min-height: 100vh;
    color: var(--login-text);
    background: var(--login-background);
    font-family: "Noto Sans KR", "Pretendard", sans-serif;
}

.login-page button,
.login-page input {
    font: inherit;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(450px, 45%) minmax(520px, 55%);
    width: 100%;
    min-height: 100vh;
    margin: 0;
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 48px clamp(48px, 5vw, 88px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 86%, rgba(217, 243, 106, 0.12), transparent 30%),
        linear-gradient(145deg, #153a34 0%, #12352f 100%);
}

.brand-panel::after {
    position: absolute;
    right: -150px;
    bottom: -185px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(217, 243, 106, 0.18);
    border-radius: 50%;
    content: "";
}

.brand,
.mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--login-deep-green);
    background: var(--login-lime);
    border-radius: 50%;
    font: 800 20px/1 "Inter", sans-serif;
}

.brand-name {
    font: 800 28px/1 "Inter", sans-serif;
    letter-spacing: -0.04em;
}

.brand-content {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    margin: auto 0;
    padding: 72px 0;
}

.brand-eyebrow,
.auth-eyebrow {
    margin: 0 0 20px;
    color: var(--login-lime);
    font: 700 12px/1.4 "Inter", sans-serif;
    letter-spacing: 0.14em;
}

.brand-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1.35;
    letter-spacing: -0.05em;
}

.brand-content h1 strong {
    color: var(--login-lime);
    font-weight: 800;
}

.brand-description {
    margin: 24px 0 0;
    color: #bbd0c8;
    font-size: 16px;
    line-height: 1.8;
}

.feature-card {
    margin-top: 64px;
    padding: 30px 32px;
    background: rgba(33, 76, 68, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(7, 30, 26, 0.18);
}

.feature-title {
    margin: 0 0 20px;
    color: var(--login-lime);
    font-size: 13px;
    font-weight: 800;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.feature-note {
    margin: 20px 0 0;
    color: #bbd0c8;
    font-size: 12px;
    line-height: 1.6;
}

.brand-footer {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(187, 208, 200, 0.72);
    font: 600 11px/1.5 "Inter", sans-serif;
}

.auth-panel {
    display: grid;
    min-height: 100vh;
    padding: 56px 32px;
    place-items: center;
}

.auth-card {
    width: min(100%, 440px);
}

.mobile-brand {
    display: none;
    margin-bottom: 48px;
}

.auth-header {
    margin-bottom: 38px;
}

.auth-eyebrow {
    margin-bottom: 12px;
    color: #4d746b;
}

.auth-header h2 {
    margin: 0;
    color: var(--login-text);
    font-size: 32px;
    line-height: 1.35;
    letter-spacing: -0.045em;
}

.auth-header p:not(.auth-eyebrow) {
    margin: 10px 0 0;
    color: var(--login-muted);
    font-size: 14px;
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.form-alert--error {
    color: #9f302d;
    background: var(--login-error-bg);
    border: 1px solid #f3d1cf;
}

.form-alert--success {
    color: #214c44;
    background: #edf7f2;
    border: 1px solid #c9e7db;
}

.form-alert svg,
.account-notice > svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

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

.form-field {
    display: grid;
    gap: 9px;
}

.form-field label {
    color: #4c5f59;
    font-size: 12px;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    color: var(--login-text);
    background: var(--login-surface);
    border: 1px solid var(--login-line);
    border-radius: 13px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

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

.form-field input:focus {
    border-color: var(--login-deep-green);
    box-shadow: 0 0 0 4px var(--login-focus);
}

.form-field--error input {
    border-color: var(--login-error);
}

.field-error {
    margin: -2px 2px 0;
    color: var(--login-error);
    font-size: 12px;
    line-height: 1.45;
}

.button {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    color: var(--login-text);
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:focus-visible {
    outline: 3px solid rgba(21, 58, 52, 0.22);
    outline-offset: 3px;
}

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

.button--primary {
    margin-top: 6px;
    color: #fff;
    background: var(--login-deep-green);
    box-shadow: 0 12px 24px rgba(21, 58, 52, 0.15);
}

.button--primary:hover {
    background: #0e302a;
}

.button--primary svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 160ms ease;
}

.button--primary:hover svg {
    transform: translateX(3px);
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0;
    color: var(--login-muted);
    font-size: 12px;
}

.divider::before,
.divider::after {
    flex: 1;
    height: 1px;
    background: var(--login-line);
    content: "";
}

.button--google {
    background: var(--login-surface);
    border: 1px solid var(--login-line);
}

.button--google:hover {
    background: #fbfcfb;
    border-color: #b9cac4;
    box-shadow: 0 8px 20px rgba(23, 51, 44, 0.07);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.signup-area {
    margin-top: 26px;
    text-align: center;
}

.signup-area p {
    margin: 0 0 12px;
    color: var(--login-muted);
    font-size: 13px;
}

.button--signup {
    background: var(--login-mint);
}

.button--signup:hover {
    background: var(--login-mint-hover);
}

.account-notice {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding: 16px 18px;
    color: #31574e;
    background: #e8f2ff;
    border-radius: 14px;
}

.account-notice strong {
    display: block;
    font-size: 12px;
    line-height: 1.5;
}

.account-notice p {
    margin: 4px 0 0;
    color: var(--login-muted);
    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 1024px) {
    .login-layout {
        grid-template-columns: minmax(380px, 42%) minmax(480px, 58%);
    }

    .brand-panel {
        padding: 40px;
    }

    .feature-card {
        margin-top: 46px;
    }
}

@media (max-width: 820px) {
    .login-layout {
        display: block;
    }

    .brand-panel {
        display: none;
    }

    .auth-panel {
        padding: 40px 24px 64px;
    }

    .mobile-brand {
        display: inline-flex;
        color: var(--login-text);
    }
}

@media (max-width: 480px) {
    .auth-panel {
        align-items: start;
        padding: 28px 20px 48px;
    }

    .mobile-brand {
        margin-bottom: 42px;
    }

    .mobile-brand .brand-mark {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .mobile-brand .brand-name {
        font-size: 24px;
    }

    .auth-header {
        margin-bottom: 30px;
    }

    .auth-header h2 {
        font-size: 28px;
    }

    .feature-card {
        display: none;
    }
}

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