:root {
    --green: #08745f;
    --green-dark: #075b4c;
    --green-pale: #eaf6f3;
    --text: #18211e;
    --muted: #6d7673;
    --border: #dbe4e1;
    --error: #c73b3b;
    --success: #08745f;
}
#user-id.id-available {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

#user-id.id-available:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

#user-id-message.success {
    color: #2563eb;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: #f4f8f7; font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; padding: 10px 16px; color: #fff; background: var(--green); }
.skip-link:focus { top: 12px; }

.site-header { height: 72px; background: #fff; border-bottom: 1px solid #e6ece9; }
.header-inner { width: min(1120px, calc(100% - 40px)); height: 100%; display: flex; align-items: center; justify-content: space-between; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--green); font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.brand-symbol { width: 39px; height: 39px; display: grid; place-items: center; }
.brand-symbol svg { width: 39px; fill: var(--green); stroke: var(--green); stroke-width: 3; stroke-linecap: round; }
.brand-symbol .white { fill: #fff; stroke: none; }
.home-link { padding: 8px 14px; color: var(--green); border: 1px solid var(--green); border-radius: 8px; font-size: 14px; font-weight: 700; }
.home-link:hover { background: var(--green-pale); }

.signup-page { min-height: calc(100vh - 72px); padding: 52px 20px 70px; }
.signup-card { width: min(640px, 100%); margin: 0 auto; padding: 42px 50px 48px; background: #fff; border: 1px solid #e2e9e6; border-radius: 18px; box-shadow: 0 16px 40px rgba(30,73,62,.09); }
.title-area { margin-bottom: 32px; text-align: center; }
.title-area p { margin: 0 0 7px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .17em; }
.title-area h1 { margin: 0; font-size: 34px; letter-spacing: -.05em; }
.title-area span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.signup-form { display: grid; gap: 21px; }
.field label, .address-fieldset legend { display: block; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; }
.field label em, .address-fieldset legend em { margin-left: 4px; color: var(--green); font-size: 11px; font-style: normal; }
.field input, .address-fieldset input { width: 100%; height: 50px; padding: 0 15px; color: var(--text); border: 1px solid var(--border); border-radius: 9px; outline: none; transition: border .2s, box-shadow .2s; }
.field input:focus, .address-fieldset input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,116,95,.1); }
.field input.invalid, .address-fieldset input.invalid { border-color: var(--error); }
#password-confirm.password-matched {
    color: var(--green-dark);
    background: var(--green-pale);
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(8,116,95,.1);
}
#user-id.id-available { color: #1e3a8a; background: #eff6ff; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
#user-id.id-available:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.2); }
#user-id-message.success { color: #2563eb; }
#phone.phone-verified { color: #075b4c; background: #eaf6f3; border-color: #08745f; box-shadow: 0 0 0 3px rgba(8,116,95,.12); }
.verification-field.is-verified {
    background: #edf9f5;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(8,116,95,.08);
}
.verification-field.is-verified .code-input-wrap input {
    color: var(--green-dark);
    background: #e3f3ee;
    border-color: #8bc5b8;
    font-weight: 700;
}
.verification-field.is-verified .timer {
    color: var(--success);
}
.verification-field.is-verified #phone-code-message {
    font-size: 13px;
    font-weight: 800;
}
.field input[readonly], .address-fieldset input[readonly] { background: #f7f9f8; cursor: default; }
.field-message { min-height: 17px; margin: 5px 2px 0; color: var(--error); font-size: 11px; }
.field-message.success { color: var(--success); }
.input-action-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 10px; }
.field-button { height: 50px; padding: 0 12px; color: var(--green); background: #fff; border: 1px solid var(--green); border-radius: 9px; font-size: 13px; font-weight: 800; cursor: pointer; transition: color .2s, background .2s; }
.field-button:hover { color: #fff; background: var(--green); }
.field-button:disabled { color: #929b98; background: #edf1ef; border-color: #d8dfdc; cursor: not-allowed; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 58px; }
.password-toggle { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); padding: 5px 7px; color: var(--green); border: 0; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.verification-field { padding: 17px; background: #f7faf9; border: 1px solid var(--border); border-radius: 10px; }
.code-input-wrap { position: relative; }
.code-input-wrap input { padding-right: 58px; background: #fff; }
.timer { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); color: var(--error); font-size: 12px; font-weight: 700; }
.address-fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.address-fieldset legend { float: left; width: 100%; }
.address-fieldset > *:not(legend) { clear: both; }
.postcode-row input { max-width: none; }
.submit-button { width: 100%; height: 54px; margin-top: 5px; color: #fff; background: var(--green); border: 0; border-radius: 10px; font-size: 17px; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; }
.submit-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.login-guide { margin: -4px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.login-guide a { color: var(--green); font-weight: 800; text-decoration: underline; }

@media (max-width: 600px) {
    .header-inner { width: calc(100% - 28px); }
    .brand { font-size: 17px; }
    .brand-symbol, .brand-symbol svg { width: 34px; height: 34px; }
    .signup-page { padding: 28px 14px 50px; }
    .signup-card { padding: 31px 22px 36px; border-radius: 14px; }
    .title-area h1 { font-size: 29px; }
    .input-action-row { grid-template-columns: minmax(0, 1fr) 108px; }
    .field-button { padding: 0 8px; font-size: 12px; }
}
