






@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.css');

:root {
  --green:       #229C73;
  --green-light: #34D794;
  --green-mint:  #6EDBAE;
  --green-pale:  #f0fdf8;
  --yellow:      #FFD800;
  --text:        #1a1a1a;
  --text-sub:    #555;
  --text-hint:   #888;
  --border:      #e0e0e0;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-btn:  40px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; }
body {
  font-family:'Pretendard','Apple SD Gothic Neo',sans-serif;
  background: linear-gradient(135deg, #e8f8f0 0%, #f0fdf8 50%, #e0f7ed 100%);
  min-height:100vh;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  padding:24px 16px;
  word-break:keep-all;
}
img { max-width:100%; display:block; }
a   { text-decoration:none; color:var(--green); }
a:hover { text-decoration:underline; }
ul  { list-style:none; }


.auth-card {
  background:#fff;
  border-radius:var(--radius-lg);
  padding:44px 40px;
  width:100%;
  max-width:480px;
  box-shadow:0 4px 32px rgba(34,156,115,.12), 0 1px 4px rgba(0,0,0,.06);
  margin:12px 0;
}
.auth-card.wide { max-width:580px; }


.auth-logo {
  display:flex; justify-content:center; margin-bottom:28px;
}
.auth-logo img { height:44px; width:auto; object-fit:contain; }


.plan-badge {
  display:inline-flex; align-items:center; gap:6px;
  font-family:'Jua',sans-serif; font-synthesis:none;
  font-size:13px; font-weight:700;
  padding:5px 14px;
  border-radius:100px;
  margin-bottom:16px;
}
.plan-badge.free     { background:#e8f8f0; color:var(--green); border:1px solid var(--green-mint); }
.plan-badge.standard { background:#6EDBAE; color:#1a4a35; border:none; }
.plan-badge.school   { background:#f0fdf8; color:var(--green); border:1px solid var(--green); }


.auth-title {
  font-family:'Jua',sans-serif; font-synthesis:none;
  font-size:26px; font-weight:700;
  color:var(--text);
  text-align:center;
  margin-bottom:6px;
}
.auth-subtitle {
  font-size:14px; color:var(--text-hint);
  text-align:center; margin-bottom:28px; line-height:1.6;
}


.section-divider {
  font-family:'Jua',sans-serif; font-synthesis:none;
  font-size:15px; font-weight:700;
  color:var(--green);
  padding-bottom:8px;
  border-bottom:2px solid var(--green-mint);
  margin:28px 0 20px;
}


.form-group { margin-bottom:20px; }
.form-row   { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:20px; }

label {
  display:block;
  font-size:14px; font-weight:600;
  color:var(--text-sub);
  margin-bottom:6px;
}

input, select, textarea {
  width:100%;
  padding:13px 16px;
  border:1.5px solid var(--border);
  border-radius:var(--radius-sm);
  font-family:'Pretendard',sans-serif;
  font-size:15px;
  color:var(--text);
  background:#fff;
  transition:border-color .2s, box-shadow .2s;
  -webkit-appearance:none;
}
input:focus, select:focus, textarea:focus {
  outline:none;
  border-color:var(--green-light);
  box-shadow:0 0 0 3px rgba(52,215,148,.15);
}
input::placeholder, textarea::placeholder { color:#bbb; }
input:disabled { background:#f5f5f5; color:#aaa; cursor:not-allowed; }


.btn-primary {
  width:100%;
  padding:15px;
  background:var(--green-light);
  color:#fff;
  font-family:'Jua',sans-serif; font-synthesis:none;
  font-size:17px; font-weight:700;
  border:none; border-radius:var(--radius-btn);
  cursor:pointer;
  transition:background .2s, transform .2s, box-shadow .2s;
  margin-top:8px;
  letter-spacing:.3px;
}
.btn-primary:hover { background:var(--green); transform:translateY(-2px); box-shadow:0 6px 20px rgba(52,215,148,.3); }
.btn-primary.yellow { background:var(--yellow); color:#333; }
.btn-primary.yellow:hover { background:#e6c200; box-shadow:0 6px 20px rgba(255,215,0,.35); }
.btn-primary.dark   { background:#414141; color:#fff; }
.btn-primary.dark:hover   { background:#2a2a2a; }

.btn-secondary {
  width:100%;
  padding:14px;
  background:transparent;
  color:var(--green);
  font-family:'Pretendard',sans-serif;
  font-size:15px; font-weight:600;
  border:1.5px solid var(--green-mint);
  border-radius:var(--radius-btn);
  cursor:pointer;
  transition:all .2s;
  margin-top:8px;
}
.btn-secondary:hover { background:var(--green-pale); }


.region-btn {
  padding:13px 18px;
  background:#fff;
  border:1.5px solid var(--border);
  border-radius:var(--radius-sm);
  font-family:'Pretendard',sans-serif;
  font-size:14px; font-weight:600;
  color:var(--text-hint);
  cursor:pointer;
  white-space:nowrap;
  transition:all .2s;
  flex-shrink:0;
}
.region-btn:hover     { border-color:var(--green-light); color:var(--green); }
.region-btn.selected  { border-color:var(--green); background:var(--green-pale); color:var(--green); font-weight:700; }
.school-row           { display:flex; gap:10px; align-items:center; }
.school-row input     { flex:1; }


.auth-links { text-align:center; margin-top:20px; font-size:14px; color:var(--text-hint); line-height:2; }
.auth-links a { color:var(--green); font-weight:600; }
.back-link {
  display:inline-flex; align-items:center; gap:4px;
  font-size:14px; color:var(--text-hint);
  margin-bottom:20px;
}
.back-link:hover { color:var(--green); text-decoration:none; }


.divider {
  display:flex; align-items:center; gap:12px;
  font-size:13px; color:var(--text-hint);
  margin:20px 0;
}
.divider::before, .divider::after {
  content:''; flex:1; height:1px; background:var(--border);
}


.info-box {
  background:var(--green-pale);
  border:1px solid var(--green-mint);
  border-radius:var(--radius-md);
  padding:16px 18px;
  font-size:14px; color:#2a6b52;
  line-height:1.65;
  margin-bottom:20px;
}
.info-box.yellow {
  background:#fffbec; border-color:#ffe58f; color:#7a5800;
}


.check-row {
  display:flex; justify-content:space-between; align-items:center;
  font-size:14px; color:var(--text-hint); margin-bottom:20px;
}
.check-row label { display:flex; align-items:center; gap:6px; margin-bottom:0; font-weight:400; color:var(--text-hint); cursor:pointer; }
.check-row input[type=checkbox] { width:16px; height:16px; accent-color:var(--green); }


.modal {
  display:none; position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,.45);
  animation:fadeIn .25s;
}
.modal.show { display:flex; align-items:center; justify-content:center; padding:16px; }
.modal-box {
  background:#fff; border-radius:var(--radius-lg);
  width:100%; max-width:520px;
  max-height:85vh; overflow-y:auto;
  animation:slideUp .28s ease;
  box-shadow:0 16px 48px rgba(0,0,0,.2);
}
.modal-head {
  position:sticky; top:0; background:#fff;
  padding:20px 24px 16px;
  border-bottom:1px solid var(--border);
  display:flex; justify-content:space-between; align-items:center;
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-head h3 { font-family:'Jua',sans-serif; font-synthesis:none; font-size:18px; color:var(--text); }
.modal-close {
  width:32px; height:32px; border:none; background:var(--border);
  border-radius:50%; cursor:pointer; font-size:18px; color:var(--text-sub);
  display:flex; align-items:center; justify-content:center;
  transition:background .2s;
}
.modal-close:hover { background:#ccc; }
.modal-body { padding:20px 24px 24px; }
.region-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(100px, 1fr)); gap:10px;
}
.region-item {
  padding:14px 8px; background:#fafafa;
  border:1.5px solid var(--border); border-radius:var(--radius-sm);
  text-align:center; cursor:pointer;
  font-size:15px; font-weight:600; color:var(--text);
  transition:all .2s;
}
.region-item:hover { border-color:var(--green-light); background:var(--green-pale); color:var(--green); }


.success-icon {
  width:72px; height:72px;
  background:var(--green-pale);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 20px;
  font-size:32px;
  animation:popIn .4s ease;
}
.success-steps {
  background:#f8f9fa; border-radius:var(--radius-md);
  padding:20px 24px; margin-bottom:20px; text-align:left;
}
.success-steps h3 { font-family:'Jua',sans-serif; font-synthesis:none; font-size:16px; margin-bottom:12px; color:var(--text); }
.success-steps ol { padding-left:20px; }
.success-steps li { font-size:14px; color:var(--text-sub); line-height:2; }


@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{transform:translateY(24px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes popIn   { from{transform:scale(.7);opacity:0} to{transform:scale(1);opacity:1} }


@media(max-width:520px) {
  .auth-card { padding:32px 24px; }
  .form-row  { grid-template-columns:1fr; }
}
