/* =============================================
   Kinetic Learning - Global Styles
   ============================================= */

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1;
}

/* Body min-height */
body {
  min-height: max(884px, 100dvh);
}

/* MakeTeam auth experience */
.auth-page { min-height: 100dvh; margin: 0; overflow-x: hidden; background: #f5f2ea; color: #101820; font-family: Geist, ui-sans-serif, system-ui, sans-serif; }
.auth-nav { width: min(1440px, calc(100% - 64px)); height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(16, 24, 32, .14); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; font-size: 18px; font-weight: 720; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: #0a46c7; color: #fff; border-radius: 8px; font-size: 15px; }
.auth-nav p { margin: 0; color: #55606a; font-size: 14px; }
.auth-shell { width: min(1440px, calc(100% - 64px)); min-height: calc(100dvh - 84px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(380px, 5fr); align-items: stretch; }
.auth-story { position: relative; padding: clamp(72px, 8vw, 124px) clamp(40px, 7vw, 112px) 64px 0; overflow: hidden; }
.eyebrow { margin: 0 0 22px; color: #0a46c7; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.auth-story h1 { max-width: 760px; margin: 0; font-size: clamp(52px, 5.6vw, 88px); line-height: .98; letter-spacing: -.065em; font-weight: 720; }
.inline-team { display: inline-flex; width: clamp(82px, 9vw, 132px); height: .58em; margin: 0 .09em; padding: 0 .12em; align-items: center; justify-content: space-evenly; vertical-align: .1em; border-radius: 999px; background: #fed01b; }
.inline-team i { width: .18em; height: .18em; border-radius: 50%; background: #101820; }
.hero-copy { max-width: 610px; margin: 32px 0 0; color: #46515b; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.6; letter-spacing: -.02em; }
.feature-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; margin-top: 56px; border-top: 1px solid rgba(16, 24, 32, .18); border-bottom: 1px solid rgba(16, 24, 32, .18); }
.feature-rail article { min-height: 110px; padding: 20px 18px 18px 0; display: flex; gap: 14px; align-items: flex-start; }
.feature-rail article + article { padding-left: 18px; border-left: 1px solid rgba(16, 24, 32, .18); }
.feature-rail strong { color: #0a46c7; font-size: 12px; }
.feature-rail span { font-size: 14px; line-height: 1.5; font-weight: 620; }
.team-canvas { position: absolute; right: -48px; bottom: 8px; width: 300px; transform: rotate(-7deg); opacity: .82; }
.team-line { display: flex; align-items: center; gap: 9px; margin: 10px 0; padding: 11px 13px; background: #fff; border: 1px solid rgba(16, 24, 32, .16); box-shadow: 0 10px 28px rgba(16, 24, 32, .07); }
.team-line b { width: 25px; color: #0a46c7; font-size: 13px; }
.team-line span { width: 24px; height: 24px; border-radius: 50%; background: #dce5f7; border: 1px solid #a8b7d2; }
.auth-panel { align-self: center; margin: 48px 0 48px 32px; padding: clamp(36px, 4vw, 56px); background: #fff; border: 1px solid rgba(16, 24, 32, .14); box-shadow: 0 28px 70px rgba(16, 24, 32, .10); }
.auth-panel-head p { margin: 0 0 9px; color: #65707a; font-size: 14px; }
.auth-panel-head h2 { margin: 0; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -.045em; }
.auth-form { display: flex; flex-direction: column; gap: 18px; margin-top: 36px; }
.auth-field { display: flex; flex-direction: column; gap: 9px; }
.auth-field label { color: #26313b; font-size: 13px; font-weight: 650; }
.auth-input { height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: #f7f8fa; border: 1px solid #cfd5dc; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-input:focus-within { background: #fff; }
.auth-input .material-symbols-outlined { color: #6b7680; font-size: 20px; }
.auth-control { width: 100%; height: 100%; padding: 0; border: 0 !important; outline: 0; background: transparent; box-shadow: none !important; color: #101820; font: inherit; }
.primary-action, .guest-action { width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; font: inherit; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.primary-action { margin-top: 4px; background: #0a46c7; color: #fff; box-shadow: 0 10px 22px rgba(10, 70, 199, .2); }
.primary-action:hover { background: #073899; transform: translateY(-2px); }
.primary-action:disabled { opacity: .6; cursor: wait; transform: none; }
.auth-secondary { margin-top: 24px; padding-top: 24px; border-top: 1px solid #e3e6ea; }
.guest-action { background: #eef3ff; color: #093a9d; }
.guest-action:hover { background: #dfe9ff; transform: translateY(-2px); }
.auth-secondary p { margin: 20px 0 0; text-align: center; color: #65707a; font-size: 14px; }
.auth-secondary a { color: #0a46c7; font-weight: 700; text-underline-offset: 3px; }
.privacy-note { margin: 28px 0 0; color: #7b858e; font-size: 12px; line-height: 1.5; text-align: center; }

@media (max-width: 900px) {
  .auth-nav { width: min(100% - 36px, 720px); height: 70px; }
  .auth-nav p { display: none; }
  .auth-shell { width: min(100% - 36px, 720px); min-height: auto; display: block; }
  .auth-story { padding: 56px 0 40px; }
  .auth-story h1 { max-width: 680px; font-size: clamp(44px, 11vw, 70px); }
  .hero-copy { margin-top: 24px; }
  .team-canvas { display: none; }
  .auth-panel { margin: 0 0 48px; }
}

@media (max-width: 560px) {
  .auth-nav, .auth-shell { width: calc(100% - 32px); }
  .auth-story { padding: 42px 0 30px; }
  .auth-story h1 { font-size: 38px; line-height: 1.04; letter-spacing: -.055em; }
  .inline-team { width: 70px; }
  .hero-copy { font-size: 16px; line-height: 1.55; }
  .feature-rail { margin-top: 34px; grid-template-columns: 1fr; }
  .feature-rail article { min-height: 72px; padding: 14px 0; align-items: center; }
  .feature-rail article + article { padding-left: 0; border-left: 0; border-top: 1px solid rgba(16, 24, 32, .18); }
  .auth-panel { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Glass Panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 32px rgba(0, 74, 198, 0.08);
}

/* Bento Card Hover */
.bento-hover {
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color .35s ease;
}
.bento-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 74, 198, .38);
  box-shadow: 0 16px 36px rgba(11, 28, 48, 0.10);
}

/* Format Card (경기 방식 선택) */
.format-card {
  transition: all 0.3s ease;
}
.format-card.selected {
  border-color: #004ac6;
  background-color: #eff4ff;
}
.format-card.selected .check-icon {
  opacity: 1;
  transform: scale(1);
}
.check-icon {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input Focus Ring */
.input-focus-ring:focus-within {
  box-shadow: 0 0 0 2px #004ac6;
  border-color: transparent;
}

/* Radio Custom */
.custom-radio:checked + label {
  background-color: #e5eeff;
  border-color: #2563eb;
  color: #004ac6;
}
.custom-radio:checked + label .radio-icon {
  color: #2563eb;
}

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
