@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: #081120;
  color: #111827;
}

body {
  min-height: 100vh;
}

::selection {
  background: #1a75ff;
  color: #fff;
}

a {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.auth-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 32px 32px 40px;
  background:
    radial-gradient(circle at 15% 18%, rgba(0, 115, 230, 0.22), transparent 20%),
    radial-gradient(circle at 88% 82%, rgba(40, 80, 255, 0.16), transparent 22%),
    linear-gradient(135deg, #07101f 0%, #09182f 45%, #0b1430 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 85%);
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}

.orb-1 {
  width: 260px;
  height: 260px;
  left: -50px;
  top: 80px;
  background: rgba(0, 133, 255, 0.22);
}

.orb-2 {
  width: 320px;
  height: 320px;
  right: -70px;
  bottom: 10px;
  background: rgba(80, 108, 255, 0.16);
}

.auth-header {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-text h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.header-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.auth-shell {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 38px 42px 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(44, 127, 255, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.22);
  color: #fff;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 640px;
}

.hero-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(26, 117, 255, 0.15);
  border: 1px solid rgba(95, 164, 255, 0.28);
  color: #9ec8ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-hero h2 {
  position: relative;
  z-index: 1;
  font-size: 60px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  max-width: 440px;
}

.auth-hero>p {
  position: relative;
  z-index: 1;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  max-width: 500px;
  margin-bottom: 34px;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 38%),
    radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.05), transparent 24%);
  pointer-events: none;
}

.auth-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(32, 91, 214, 0.14);
  filter: blur(70px);
  pointer-events: none;
}

.hero-points {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}

.hero-point {
  position: relative;
  padding: 18px 20px 18px 22px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #67b0ff 0%, #2a73ff 100%);
}

.hero-point:hover {
  transform: translateY(-2px);
  border-color: rgba(130, 180, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 28px rgba(0, 0, 0, 0.18);
}

.point-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.point-desc {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.auth-card {
  overflow: hidden;
  border-radius: 32px;
  padding: 28px;
  background: rgba(248, 250, 252, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  min-height: 640px;
}

.title-text {
  display: flex;
  width: 200%;
}

.title-text .title {
  width: 50%;
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  letter-spacing: -0.02em;
  transition: all 0.45s ease;
}

.form-container {
  width: 100%;
  overflow: hidden;
}

.slide-controls {
  position: relative;
  display: flex;
  height: 58px;
  width: 100%;
  overflow: hidden;
  margin: 26px 0 22px;
  justify-content: space-between;
  border: 1px solid #d8dee8;
  border-radius: 18px;
  background: #eef2f7;
  padding: 4px;
}

.slide-controls .slide {
  height: 100%;
  width: 100%;
  color: #475569;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  z-index: 1;
  transition: all 0.3s ease;
  border-radius: 14px;
}

.slide-controls .slider-tab {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  border-radius: 14px;
  background: linear-gradient(135deg, #0052a8 0%, #0a6ad6 100%);
  box-shadow: 0 8px 20px rgba(10, 106, 214, 0.28);
  transition: all 0.4s ease;
}

input[type="radio"] {
  display: none;
}

#signup:checked~.slider-tab {
  left: calc(50% + 0px);
}

#signup:checked~label.signup {
  color: #fff;
  cursor: default;
  user-select: none;
}

#signup:checked~label.login {
  color: #475569;
}

#login:checked~label.login {
  color: #fff;
  cursor: default;
  user-select: none;
}

#login:checked~label.signup {
  color: #475569;
}

.form-inner {
  display: flex;
  width: 200%;
  align-items: flex-start;
}

.form-inner form {
  width: 50%;
  transition: all 0.45s ease;
}

.form-section {
  padding: 2px 2px 18px;
}

.login-layout {
  max-width: 620px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 20px;
}

.form-section h3 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}

.signup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.field-span-2 {
  grid-column: span 2;
}

.field {
  width: 100%;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.field input {
  height: 52px;
  width: 100%;
  outline: none;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #d6dde7;
  background: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus {
  border-color: #1a75ff;
  box-shadow: 0 0 0 4px rgba(26, 117, 255, 0.12);
  background: #fff;
}

.field input::placeholder {
  color: #9aa5b5;
}

.hint {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.hint.success {
  color: #16a34a;
}

.hint.error {
  color: #dc2626;
}

.inline-action {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 10px;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 72px !important;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sub-btn {
  height: 52px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #162338 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.sub-btn-light {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.sub-btn-light.available {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}

.sub-btn:hover {
  opacity: 0.96;
}

.sub-btn:active {
  transform: scale(0.985);
}

.verify-btn.verified {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}

.password-strength.compact {
  margin-top: 10px;
}

.strength-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-fill {
  width: 0%;
  height: 100%;
  background: #ef4444;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

#strength-text {
  display: inline-block;
  font-size: 13px;
  color: #334155;
}

.password-policy.compact {
  margin-top: 8px;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
}

.password-policy li.valid {
  color: #16a34a;
  font-weight: 700;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.checkbox-inline,
.checkbox-block {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-inline input,
.checkbox-block input {
  width: 16px;
  height: 16px;
  accent-color: #1663d6;
}

.text-link {
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.agreement-box {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #dce4ee;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
}

.all-check {
  padding-bottom: 14px;
  border-bottom: 1px solid #dbe4ef;
  font-weight: 700;
  margin-bottom: 14px;
}

.agreement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.btn {
  height: 56px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  margin-top: 2px;
}

.btn .btn-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #003f87 0%, #0a67d0 100%);
  border-radius: 18px;
  transition: transform 0.25s ease;
}

.btn:hover .btn-layer {
  transform: scale(1.02);
}

.btn input[type="submit"] {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  border: none;
  background: none;
  color: #fff;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.divider {
  position: relative;
  text-align: center;
  margin: 26px 0 18px;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e2e8f0;
}

.divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: rgba(248, 250, 252, 0.97);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-btn {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 1px solid #d7deea;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.social-btn.google {
  background: #fff;
}

.social-btn.kakao {
  background: #fee500;
  border-color: #fee500;
  color: #191919;
}

.social-btn.naver {
  background: #03c75a;
  border-color: #03c75a;
  color: #fff;
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.82);
  color: #111827;
}

.signup-link {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 14px;
  color: #475569;
}

.signup-link a {
  color: #2563eb;
  font-weight: 700;
}

.signup-link a:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 240px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast.success {
  background: rgba(22, 163, 74, 0.96);
}

.toast.error {
  background: rgba(220, 38, 38, 0.96);
}

@media (max-width: 1180px) {
  .auth-hero {
    min-height: auto;
  }

  .auth-hero h2 {
    font-size: 52px;
    max-width: 100%;
  }

  .auth-hero>p {
    margin-bottom: 36px;
  }
}

@media (max-width: 900px) {

  .signup-grid,
  .agreement-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .auth-hero {
    padding: 30px 24px 26px;
    border-radius: 24px;
  }

  .hero-chip {
    margin-bottom: 28px;
  }

  .auth-hero h2 {
    font-size: 42px;
    line-height: 1.14;
    margin-bottom: 18px;
  }

  .auth-hero>p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 28px;
  }

  .hero-point {
    padding: 18px 18px 18px 20px;
    border-radius: 18px;
  }

  .point-title {
    font-size: 18px;
  }

  .point-desc {
    font-size: 14px;
  }
}