@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800&display=swap');

:root {
  --black: #111111;
  --white: #ffffff;
  --gray-100: #f3f3f3;
  --gray-150: #ededed;
  --gray-200: #e3e3e3;
  --gray-300: #d6d6d6;
  --gray-400: #ababab;
  --gray-500: #7b7b7b;
  --gray-700: #3d3d3d;
  --danger: #d93025;
  --success: #1f7a5c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  line-height: 1.4;
  max-width: 390px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.auth-body {
  min-height: 100vh;
}

.mobile-app {
  min-height: 100vh;
  background: var(--white);
}

.login-screen-simple {
  display: flex;
  flex-direction: column;
}

.signup-screen-simple {
  display: flex;
  flex-direction: column;
}

.signup-screen-flat {
  display: flex;
  flex-direction: column;
}

.login-simple-wrap {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 20px 154px;
}

.simple-main-cluster {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  transform: translateY(0);
}

.simple-logo-box {
  width: 78px;
  height: 78px;
  margin: 0 auto 30px;
  border-radius: 22px;
  background: linear-gradient(145deg, #2f343e 0%, #474d59 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 10px 24px rgba(17, 17, 17, 0.10);
}

.signup-logo-box {
  margin-bottom: 18px;
}

.simple-logo-mark {
  position: relative;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-ring {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.logo-core {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  text-shadow: -2px 0 0 #7f9cff;
}

.logo-dot {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8ced8;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.simple-login-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.simple-field input {
  width: 100%;
  height: 64px;
  border: none;
  border-radius: 24px;
  background: #e8e8e8;
  padding: 0 20px;
  font-family: inherit;
  font-size: 16px;
  color: var(--black);
  outline: none;
}

.simple-field input::placeholder {
  color: var(--gray-400);
}

.simple-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--gray-500);
  font-size: 14px;
  width: 100%;
}

.simple-check-row input {
  width: 18px;
  height: 18px;
}

.simple-link-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
  width: 100%;
}

.simple-link-row a {
  font-size: 13px;
  color: var(--gray-500);
  text-decoration: none;
}

.simple-divider {
  width: 100%;
  height: 1px;
  margin-top: 24px;
  margin-bottom: 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), #e1e1e1 14%, #e1e1e1 86%, rgba(0, 0, 0, 0));
}

.simple-social-section {
  margin-top: 0;
  text-align: center;
  width: 100%;

}

.simple-social-section p {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}

.simple-social-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.simple-social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #e7e7e7;
  color: #8e8e8e;
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.simple-social-btn.kakao {
  background: #fee500;
  color: #ffffff;
  font-size: 14px;
}

.simple-social-btn.naver {
  background: #23c300;
  color: #ffffff;
}

.simple-social-btn.facebook {
  background: #4267b2;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
}

.simple-social-btn.apple {
  background: #000000;
  color: #ffffff;
  font-size: 22px;
}

.auth-bottom {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  padding: 12px 20px 18px;
  background: var(--white);
}

.simple-bottom {
  display: grid;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.action-link {
  width: 100%;
  min-height: 58px;
  border: none;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.simple-login-btn {
  width: 100%;
  background: #000000;
  color: #ffffff;
}

.simple-guest-btn {
  background: #e5e5e5;
  color: #9a9a9a;
}

.feedback,
.helper-text,
.error-text {
  min-height: 16px;
  font-size: 12px;
}

.feedback,
.helper-text {
  color: var(--gray-500);
}

.error-text {
  color: var(--danger);
}

.feedback.is-error,
.helper-text.is-error {
  color: var(--danger);
}

.feedback.is-success,
.helper-text.is-success {
  color: var(--success);
}

.auth-top {
  padding: 16px 20px 14px;
}

.signup-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.signup-back-link {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-700);
}

.signup-chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
}

.signup-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.signup-flat-header {
  height: 58px;
  padding: 8px 20px 0;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
}

.signup-flat-header h1 {
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
}

.signup-back-link,
.signup-header-spacer {
  width: 56px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.signup-back-link {
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.signup-flat-intro {
  padding: 4px 20px 16px;
  text-align: center;
}

.signup-description {
  font-size: 13px;
  color: var(--gray-500);
}

.signup-flat-body {
  padding: 18px 20px 110px;
}

.signup-flat-form {
  display: grid;
  gap: 18px;
}

.signup-inline-field {
  align-items: end;
}

.signup-section {
  display: grid;
  gap: 10px;
}

.signup-section + .signup-section {
  padding-top: 4px;
  border-top: 1px solid var(--gray-100);
}

.signup-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.signup-section-head strong {
  font-size: 16px;
  font-weight: 800;
}

.signup-section-head span {
  font-size: 11px;
  color: var(--gray-500);
  white-space: nowrap;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.back-link,
.step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.back-link {
  background: var(--gray-100);
  color: var(--gray-700);
}

.step-chip {
  background: var(--black);
  color: var(--white);
}

.step-chip.ghost {
  background: var(--gray-100);
  color: var(--gray-700);
}

.mini-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mini-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
}

.auth-content {
  padding: 18px 20px 110px;
}

.form-scroll {
  padding-bottom: 132px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 5px;
}

.field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: #ededed;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--black);
  outline: none;
}

.field input::placeholder {
  color: var(--gray-400);
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 8px;
  align-items: end;
}

.compact-btn {
  min-height: 46px;
  border-radius: 14px;
  font-size: 12px;
  background: #2f343e;
  color: #ffffff;
}

.compact-btn.is-verified {
  background: #d8eadf;
  color: var(--success);
}

.field input[readonly] {
  color: var(--gray-500);
  background: #f1f1f1;
}

.signup-flat-form .feedback,
.signup-flat-form .helper-text,
.signup-flat-form .error-text {
  min-height: 0;
  font-size: 11px;
}

.signup-flat-form .feedback:empty,
.signup-flat-form .helper-text:empty,
.signup-flat-form .error-text:empty {
  display: none;
}

.auth-bottom.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.complete-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.complete-wrap {
  padding: 40px 20px 136px;
  text-align: center;
}

.complete-badge {
  width: 108px;
  height: 108px;
  margin: 0 auto 22px;
  border-radius: 32px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.complete-badge-inner {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
}

.complete-copy {
  display: grid;
  gap: 12px;
  justify-items: center;
}

@media (max-width: 360px) {
  .inline-field,
  .auth-bottom.dual {
    grid-template-columns: 1fr;
  }

  .signup-flat-header {
    grid-template-columns: 48px 1fr 48px;
  }

  .signup-back-link,
  .signup-header-spacer {
    width: 48px;
  }

  .simple-social-btn {
    width: 44px;
    height: 44px;
  }
}

.signup-flat-body.no-header {
  padding-top: 34px;
}

.signup-action-bottom {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: 10px;
}

.signup-prev-btn {
  min-height: 58px;
  border-radius: 24px;
  background: #e5e5e5;
  color: #8a8a8a;
}
