:root {
    --ink: #17151e;
    --muted: #716d78;
    --line: #e7e4ea;
    --purple: #6c3df4;
    --purple-dark: #4d22cc;
    --lime: #cfff4a;
}

* { box-sizing: border-box; }

.signup-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 18%, rgba(207,255,74,.16), transparent 25%),
        linear-gradient(115deg, #17151e 0 44%, #f7f6f8 44% 100%);
    color: var(--ink);
    font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.site-header {
    height: 84px;
    padding: 0 clamp(24px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.brand { color: white; display: flex; align-items: center; gap: 11px; font: 800 16px Manrope, sans-serif; letter-spacing: .08em; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 10px 3px 10px 3px; font-size: 20px; }
.site-header p { margin: 0; color: #716d78; font-size: 14px; }
.site-header p a { color: var(--purple); font-weight: 700; margin-left: 7px; }

.signup-layout { max-width: 1440px; margin: 0 auto; padding: 44px clamp(24px, 6vw, 96px) 80px; display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(48px, 8vw, 130px); align-items: start; }
.signup-intro { color: white; padding-top: 80px; position: sticky; top: 24px; }
.intro-chip { color: var(--lime); font: 700 12px Manrope, sans-serif; letter-spacing: .22em; }
.signup-intro h1 { margin: 22px 0 26px; font-size: clamp(44px, 5vw, 72px); line-height: 1.12; letter-spacing: -.06em; }
.signup-intro h1 em { color: var(--lime); font-style: normal; }
.signup-intro > p { color: #bdb9c5; max-width: 470px; font-size: 16px; line-height: 1.8; }
.benefit-list { padding: 35px 0 0; margin: 38px 0 0; border-top: 1px solid #34313b; list-style: none; display: grid; gap: 18px; }
.benefit-list li { color: #e4e1e8; display: flex; gap: 16px; align-items: center; font-size: 14px; }
.benefit-list span { color: var(--lime); font: 700 11px Manrope, sans-serif; }

.signup-card { width: 100%; max-width: 680px; padding: clamp(30px, 4vw, 54px); border-radius: 28px; background: white; box-shadow: 0 24px 80px rgba(25,18,42,.12); }
.form-heading > span { color: var(--purple); font: 800 11px Manrope, sans-serif; letter-spacing: .2em; }
.form-heading h2 { margin: 8px 0 7px; font-size: 32px; letter-spacing: -.04em; }
.form-heading p { margin: 0 0 25px; color: var(--muted); font-size: 14px; }
.social-signup { display: grid; gap: 9px; }
.social-button { height: 48px; padding: 0 18px; display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.social-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(28,20,44,.08); }
.social-button b { font: 800 16px Arial, sans-serif; }
.social-button span { text-align: center; }
.social-button.kakao { border-color: #fee500; background: #fee500; color: #191919; }
.social-button.naver { border-color: #03c75a; background: #03c75a; color: white; }
.social-button.google { background: white; }
.social-button.google b { color: #4285f4; }
.signup-divider { margin: 24px 0; display: flex; align-items: center; gap: 13px; color: #aaa5af; font-size: 11px; }
.signup-divider::before, .signup-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.form-alert { margin: 0 0 18px; padding: 13px 15px; border-radius: 10px; font-size: 13px; }
.form-alert.error { background: #fff0f0; color: #b42318; }
.form-alert.success { background: #edfbd5; color: #315d0a; }

.role-select { border: 0; padding: 0; margin: 0 0 27px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-option { position: relative; min-height: 118px; padding: 17px; border: 1.5px solid var(--line); border-radius: 15px; cursor: pointer; display: grid; grid-template-columns: 35px 1fr; column-gap: 11px; align-content: center; transition: .2s ease; }
.role-option input { position: absolute; opacity: 0; }
.role-option:has(input:checked) { border-color: var(--purple); background: #f6f2ff; box-shadow: 0 0 0 3px rgba(108,61,244,.08); }
.role-icon { grid-row: 1 / 3; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: #eee9ff; color: var(--purple); font-size: 18px; }
.role-option strong { align-self: end; font-size: 14px; }
.role-option small { align-self: start; color: var(--muted); font-size: 11px; line-height: 1.5; }
.role-banner { margin-bottom: 27px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid #ded7f8; border-radius: 14px; background: #f6f2ff; }
.role-banner div { display: grid; gap: 3px; }
.role-banner strong { font-size: 14px; }
.role-banner small { color: var(--muted); font-size: 11px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field > span:first-child { font-weight: 700; font-size: 12px; }
.field input, .field select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: white; font: 13px "Noto Sans KR", sans-serif; transition: .2s ease; }
.field input:focus, .field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(108,61,244,.09); }
.field input::placeholder { color: #aaa6b0; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 54px; }
.password-toggle { position: absolute; right: 8px; top: 8px; height: 32px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }

.agreements { margin-top: 26px; padding: 18px; border-radius: 12px; background: #f7f6f8; }
.check-row { min-height: 27px; display: flex; align-items: center; gap: 9px; color: #65616c; font-size: 12px; }
.check-row input { width: 16px; height: 16px; accent-color: var(--purple); }
.check-row span { flex: 1; }
.check-row b { color: var(--purple); font-weight: 600; }
.check-row button, .check-row > a { border: 0; background: transparent; color: #8c8791; text-decoration: underline; cursor: pointer; font-size: 11px; }
.check-all { padding-bottom: 11px; margin-bottom: 9px; border-bottom: 1px solid #e3e0e6; color: var(--ink); font-weight: 700; font-size: 13px; }
.agreement-details { display: grid; gap: 3px; }

.primary-button { width: 100%; height: 56px; margin-top: 20px; border: 0; border-radius: 12px; background: var(--purple); color: white; cursor: pointer; font: 700 14px "Noto Sans KR", sans-serif; box-shadow: 0 12px 24px rgba(108,61,244,.22); transition: .2s ease; }
.primary-button:hover { background: var(--purple-dark); transform: translateY(-1px); }
.primary-button span { margin-left: 8px; font-size: 18px; }
.form-note { margin: 14px 0 0; text-align: center; color: #918c96; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 900px) {
    .signup-page { background: #f7f6f8; }
    .site-header { background: var(--ink); }
    .site-header p { color: #d3ced8; }
    .signup-layout { display: block; padding-top: 30px; }
    .signup-intro { position: static; padding: 25px 4px 45px; color: var(--ink); }
    .signup-intro h1 { font-size: 48px; }
    .signup-intro > p { color: var(--muted); }
    .benefit-list { display: none; }
    .signup-card { margin: 0 auto; }
}

@media (max-width: 560px) {
    .site-header { height: 70px; padding: 0 18px; }
    .site-header p { font-size: 0; }
    .site-header p a { font-size: 13px; }
    .signup-layout { padding: 20px 12px 45px; }
    .signup-intro { padding: 20px 10px 35px; }
    .signup-intro h1 { font-size: 40px; }
    .signup-card { padding: 28px 20px; border-radius: 20px; }
    .role-select, .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
}
