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

:root {
    --green: #0b5d3b;
    --green-deep: #063d2b;
    --green-dark: #032b20;
    --cream: #f6f1e7;
    --brown: #7a5132;
    --ink: #1d2923;
    --muted: #78817c;
    --line: #dfe5e1;
    --white: #ffffff;
    --error: #a83d34;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    color: var(--ink);
    background: #ecefe9;
    font-family: "Noto Sans KR", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 46%) 1fr;
    background: var(--white);
}

.brand-panel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px clamp(46px, 8vw, 120px);
    color: var(--cream);
    background:
        linear-gradient(145deg, rgba(3,43,32,.94), rgba(11,93,59,.9)),
        radial-gradient(circle at 65% 20%, #497b56, transparent 48%);
}

.brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='.6' d='M42 0v84M0 42h84M12.3 12.3l59.4 59.4M71.7 12.3L12.3 71.7'/%3E%3C/svg%3E");
}

.brand-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    border: 1px solid rgba(246,241,231,.14);
}

.brand-glow--one { width: 430px; height: 430px; right: -220px; top: 8%; }
.brand-glow--two { width: 280px; height: 280px; left: -160px; bottom: 5%; }

.brand-content { position: relative; z-index: 1; }

.brand-mark {
    position: relative;
    width: 62px;
    height: 74px;
    margin-bottom: 24px;
    border-radius: 50% 50% 50% 12%;
    transform: rotate(-45deg);
    background: var(--cream);
    box-shadow: 0 14px 38px rgba(0,0,0,.18);
}

.brand-mark::after {
    content: "";
    position: absolute;
    left: 24px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cream);
}

.brand-mark__eye,
.brand-mark__smile {
    position: absolute;
    z-index: 1;
    display: block;
    background: var(--green-deep);
    transform: rotate(45deg);
}

.brand-mark__eye { width: 7px; height: 7px; border-radius: 50%; top: 28px; }
.brand-mark__eye--left { left: 19px; }
.brand-mark__eye--right { left: 35px; }
.brand-mark__smile { width: 20px; height: 9px; left: 22px; top: 43px; border-radius: 0 0 14px 14px; background: transparent; border-bottom: 3px solid var(--green-deep); }

.brand-name {
    margin: 0 0 48px;
    font: 700 22px/1 "DM Sans", sans-serif;
    letter-spacing: -.7px;
}

.brand-name span { color: #c9a778; }

.brand-content h1 {
    margin: 0 0 28px;
    font-size: clamp(48px, 5vw, 74px);
    line-height: 1.14;
    letter-spacing: -4px;
}

.brand-description { margin: 0; color: rgba(246,241,231,.74); font-size: 16px; line-height: 1.8; }
.brand-footnote { position: absolute; left: clamp(46px, 8vw, 120px); bottom: 42px; z-index: 1; margin: 0; font: 600 10px/1 "DM Sans", sans-serif; letter-spacing: 2.6px; opacity: .55; }

.form-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 44px clamp(32px, 7vw, 104px) 28px;
    background: linear-gradient(160deg, #fff 58%, #fbfaf6);
}

.mobile-brand { display: none; }
.form-wrap { width: min(100%, 430px); margin: auto; }
.form-header { margin-bottom: 34px; }
.eyebrow { display: block; margin-bottom: 16px; color: var(--brown); font: 700 11px/1 "DM Sans", sans-serif; letter-spacing: 2.2px; }
.form-header h2 { margin: 0 0 14px; font-size: 38px; line-height: 1.28; letter-spacing: -2.3px; }
.form-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -8px 0 22px;
    padding: 12px 14px;
    border: 1px solid #efd5d1;
    border-radius: 10px;
    color: var(--error);
    background: #fff7f6;
    font-size: 13px;
}

.alert__icon { display: grid; place-items: center; flex: 0 0 20px; height: 20px; border-radius: 50%; color: white; background: var(--error); font-weight: 700; }
.alert--success { border-color:#cfe5d5; color:var(--green); background:#f0f8f2; }
.alert--success .alert__icon { background:var(--green); }
.login-form { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; }
.field__label { font-size: 13px; font-weight: 700; }

.field__control {
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.field__control:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(11,93,59,.08); }
.field__control > svg { width: 20px; fill: none; stroke: #8a948e; stroke-width: 1.7; }
.field__control input { min-width: 0; flex: 1; height: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; }
.field__control input::placeholder { color: #adb5b0; }

.password-toggle { width: 34px; height: 34px; display: grid; place-items: center; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.password-toggle:hover { background: #f3f5f2; }
.password-toggle svg { width: 21px; fill: none; stroke: #88928c; stroke-width: 1.7; }

.form-options { display: flex; justify-content: space-between; align-items: center; margin-top: -5px; font-size: 12px; }
.check-option { display: flex; align-items: center; gap: 8px; color: #626d67; cursor: pointer; }
.check-option input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { width: 18px; height: 18px; border: 1px solid #cbd2ce; border-radius: 5px; background: #fff; }
.check-option input:checked + .check-box { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 7l2.3 2.4L11 4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.muted-link { color: #7d8781; text-decoration: none; }
.muted-link:hover { color: var(--green); }

.primary-button {
    height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 13px;
    color: var(--cream);
    background: var(--green);
    box-shadow: 0 12px 24px rgba(11,93,59,.2);
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s, background .18s, box-shadow .18s;
}

.primary-button:hover { transform: translateY(-1px); background: var(--green-deep); box-shadow: 0 15px 28px rgba(6,61,43,.25); }
.primary-button:active { transform: translateY(0); }
.primary-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.join-copy { margin: 28px 0 0; text-align: center; color: #818a85; font-size: 13px; }
.join-copy a { color: var(--green); font-weight: 700; text-decoration: none; }
.form-footer { margin-top: auto; padding-top: 30px; color: #a1a9a4; text-align: right; font: 500 10px/1 "DM Sans", sans-serif; letter-spacing: .5px; }

@media (max-width: 760px) {
    body { background: #fff; }
    .login-shell { display: block; min-height: 100svh; }
    .brand-panel { display: none; }
    .form-panel { min-height: 100svh; padding: max(25px, env(safe-area-inset-top)) 24px max(22px, env(safe-area-inset-bottom)); }
    .mobile-brand { display: flex; align-items: center; gap: 10px; color: var(--green-deep); font: 700 17px/1 "DM Sans", sans-serif; }
    .mobile-brand__mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px 12px 12px 4px; color: var(--cream); background: var(--green); font-size: 16px; box-shadow: 0 7px 16px rgba(11,93,59,.18); }
    .form-wrap { margin: clamp(54px, 10vh, 92px) auto auto; }
    .form-header { margin-bottom: 31px; }
    .form-header h2 { font-size: 34px; letter-spacing: -2px; }
    .form-footer { text-align: center; }
}

@media (max-width: 380px) {
    .form-panel { padding-left: 20px; padding-right: 20px; }
    .form-wrap { margin-top: 42px; }
    .form-header h2 { font-size: 31px; }
}

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