:root {
  --gymfit-green: #a8ff35;
  --black: #000000;
  --white: #ffffff;

  --card-bg: #1f1f1f;
  --card-border: rgba(255, 255, 255, 0.2);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;

  color: var(--text-primary);
  background: var(--black);

  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
a {
  font-family: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.signup-type-page {
  width: 100%;
  min-height: 100dvh;

  display: flex;
  justify-content: center;

  background: var(--black);
}

.signup-type-container {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;

  padding:
    max(28px, env(safe-area-inset-top))
    32px
    max(40px, env(safe-area-inset-bottom));

  display: flex;
  flex-direction: column;
}

/* =========================
   상단
========================= */

.signup-type-header {
  width: 100%;
  height: 48px;

  display: flex;
  align-items: center;
}

.back-button {
  width: 40px;
  height: 40px;

  padding: 0;

  display: flex;
  justify-content: flex-start;
  align-items: center;

  color: #ffffff;
  background: transparent;

  border: none;
  outline: none;

  cursor: pointer;
}

.back-button svg {
  width: 29px;
  height: 29px;
}

/* =========================
   제목
========================= */

.title-area {
  margin-top: 66px;
}

.title-area h1 {
  margin: 0;

  color: var(--text-primary);

  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

.title-area p {
  margin: 9px 0 0;

  color: var(--text-secondary);

  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

/* =========================
   계정 유형 카드
========================= */

.account-type-list {
  width: 100%;

  margin-top: 52px;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

.account-card {
  width: 100%;
  min-height: 150px;

  padding: 22px 20px;

  display: grid;
  grid-template-columns: 88px 1fr 28px;
  align-items: center;
  column-gap: 18px;

  color: var(--text-primary);
  background: var(--card-bg);

  border: 1px solid var(--card-border);
  border-radius: 20px;
  outline: none;

  text-align: left;

  cursor: pointer;

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

.account-card:hover {
  border-color: rgba(168, 255, 53, 0.72);
}

.account-card:active {
  transform: scale(0.985);
}

.account-card.selected {
  border-color: var(--gymfit-green);

  box-shadow:
    0 0 0 1px rgba(168, 255, 53, 0.22);
}

.icon-wrapper {
  width: 88px;
  height: 88px;

  display: flex;
  justify-content: center;
  align-items: center;

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.account-icon {
  display: block;

  width: 48px;
  height: 48px;

  background-color: #858585;

  transition:
    background-color 0.18s ease;
}

.member-icon {
  -webkit-mask:
    url("/static/assets/icons/person.svg")
    center / contain no-repeat;

  mask:
    url("/static/assets/icons/person.svg")
    center / contain no-repeat;
}

.trainer-icon {
  -webkit-mask:
    url("/static/assets/icons/gym.svg")
    center / contain no-repeat;

  mask:
    url("/static/assets/icons/gym.svg")
    center / contain no-repeat;
}

.card-text {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card-text strong {
  color: var(--text-primary);

  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.card-text > span {
  color: var(--text-secondary);

  font-size: 14px;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: -0.2px;
}

.card-arrow {
  width: 28px;
  height: 28px;

  display: flex;
  justify-content: center;
  align-items: center;

  color: rgba(255, 255, 255, 0.62);

  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.card-arrow svg {
  width: 24px;
  height: 24px;
}

.account-card.selected .account-icon {
  background-color: var(--gymfit-green);
}

.account-card.selected .icon-wrapper {
  border-color: rgba(168, 255, 53, 0.55);
}

.account-card.selected .card-arrow {
  color: var(--gymfit-green);
  transform: translateX(2px);
}

/* =========================
   하단
========================= */

.bottom-area {
  width: 100%;

  margin-top: auto;
  padding-top: 56px;

  text-align: center;
}

.divider {
  width: 100%;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.divider span {
  height: 1px;

  background: rgba(255, 255, 255, 0.18);
}

.divider p {
  margin: 0;

  color: var(--text-muted);

  font-size: 13px;
}

.login-text {
  margin: 35px 0 0;

  color: var(--text-muted);

  font-size: 14px;
  line-height: 1.5;
}

.login-link {
  display: inline-block;

  margin-top: 8px;
  padding: 4px 8px;

  color: var(--gymfit-green);

  font-size: 15px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================
   작은 화면
========================= */

@media (max-width: 370px) {
  .signup-type-container {
    padding-left: 22px;
    padding-right: 22px;
  }

  .title-area {
    margin-top: 54px;
  }

  .title-area h1 {
    font-size: 31px;
  }

  .title-area p {
    font-size: 15px;
  }

  .account-type-list {
    margin-top: 42px;
  }

  .account-card {
    min-height: 134px;

    padding: 18px 15px;

    grid-template-columns: 74px 1fr 24px;
    column-gap: 13px;
  }

  .icon-wrapper {
    width: 74px;
    height: 74px;
  }

  .account-icon {
    width: 41px;
    height: 41px;
  }

  .card-text strong {
    font-size: 18px;
  }

  .card-text > span {
    font-size: 13px;
  }
}