@font-face {
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 400;
    src: url('/font/spoqa/SpoqaHanSansNeo-Regular.woff2') format('woff2'),
         url('/font/spoqa/SpoqaHanSansNeo-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 700;
    src: url('/font/spoqa/SpoqaHanSansNeo-Bold.woff2') format('woff2'),
         url('/font/spoqa/SpoqaHanSansNeo-Bold.woff') format('woff');
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Spoqa Han Sans Neo', sans-serif;
    background: linear-gradient(160deg, #ecfdf5 0%, #fff7ed 100%);
    color: #111827;
    min-height: 100vh;
}

.wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    width: min(640px, 100%);
    background: #fff;
    border: 1px solid #d6e3df;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 { margin: 0 0 8px; font-size: 28px; font-weight: 700; }
.desc { margin: 0 0 22px; color: #475569; font-size: 15px; line-height: 1.5; }

.row { margin-bottom: 14px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
}

.id-row .split {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.id-row button {
    border: 0;
    border-radius: 10px;
    background: #0f766e;
    color: #fff;
    padding: 0 12px;
    font-weight: 700;
    cursor: pointer;
}

#idCheckMsg.ok { color: #047857; }
#idCheckMsg.bad { color: #b91c1c; }

.mobile-grid {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 8px;
}

.submit-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px;
    background: #f97316;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
}

.terms-box {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    max-height: 320px;
    overflow: auto;
    line-height: 1.7;
}

.terms-box h2 { margin: 4px 0 6px; font-size: 17px; }
.terms-box p { margin: 0 0 10px; color: #334155; }
.check-line {
    margin: 14px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.check-line input[type="checkbox"] {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
}

@media (max-width: 640px) {
    .mobile-grid { grid-template-columns: 1fr 1fr 1fr; }
    .card { padding: 20px; }
    .wrap { padding: 16px; }
    h1 { font-size: 24px; }
    .row { margin-bottom: 12px; }
}
