:root {
  --v2-line: rgba(48, 42, 30, 0.12);
  --v2-green: #34ab2a;
  --v2-green-2: #2f9f26;
  --v2-ink: #1f2328;
  --v2-gray: #7f857d;
  --v2-card: #ffffff;
  --v2-danger: #d33b3b;
}

body {
  background: #e8e6df;
  display: flex;
  justify-content: center;
  padding: 24px 0 40px;
}

#wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.v2-phone {
  width: 100%;
  max-width: 430px;
  min-height: calc(100vh - 64px);
  position: relative;
  background: #f6f7f3;
  border-radius: 28px;
  box-shadow: 0 22px 48px -30px rgba(0, 0, 0, 0.4), 0 10px 22px -20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.v2-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 52px;
  position: relative;
  z-index: 1;
}

.v2-appbar .back {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--v2-ink);
}

.v2-appbar .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--v2-ink);
}

.v2-appbar .sp {
  width: 38px;
  height: 38px;
}

.v2-body {
  min-height: calc(100vh - 64px - 52px);
  display: flex;
  flex-direction: column;
  padding: 14px 28px 30px;
}

.v2-head {
  margin: 10px 0 24px;
}

.v2-head .t {
  font-size: 24px;
  line-height: 1.34;
  letter-spacing: -0.024em;
  color: var(--v2-ink);
  font-weight: 800;
}

.v2-head .s {
  font-size: 14px;
  color: var(--v2-gray);
  margin-top: 8px;
  line-height: 1.55;
}

.input--typeA {
  margin-bottom: 12px;
}

.v2-lab {
  display: block;
  margin: 0 0 7px 2px;
  font-size: 13px;
  color: #656d63;
  font-weight: 700;
}

.v2-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--v2-card);
  border: 1.5px solid var(--v2-line);
  border-radius: 14px;
  padding: 0 16px;
  height: 54px;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.v2-inp {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--v2-ink);
  letter-spacing: -0.014em;
  outline: none;
}

.v2-inp::placeholder {
  color: #adafa4;
  font-weight: 500;
}

.v2-box:focus-within {
  border-color: var(--v2-green);
  box-shadow: 0 0 0 3px rgba(52, 171, 42, 0.1);
}

.input--typeA.invalid .v2-box {
  border-color: var(--v2-danger);
  box-shadow: 0 0 0 3px rgba(211, 59, 59, 0.12);
}

.info_txt.invalid {
  display: none;
  margin-top: 6px;
  margin-left: 2px;
  color: var(--v2-danger);
  font-size: 12px;
  font-weight: 600;
}

.info_txt.invalid.active {
  display: block;
}

.btn_primary.v2-btn {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 10px;
  background: linear-gradient(180deg, #45bc38 0%, var(--v2-green) 52%, var(--v2-green-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px -8px rgba(40, 150, 28, 0.5);
  border: 0;
}

.btn_primary.v2-btn:disabled {
  opacity: 0.5;
}

.v2-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #8a9087;
}

.v2-error-wrap {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
}

.v2-error-msg {
  font-size: 14px;
  line-height: 1.5;
  color: #6a7067;
  margin-bottom: 14px;
}

.v2-modal.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(19, 23, 20, 0.42);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.v2-modal.modal.open {
  display: flex;
}

.v2-modal .modal__inner {
  width: 100%;
  max-width: 320px;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 16px 14px;
}

.v2-modal .modal__header h3 {
  font-size: 18px;
  color: var(--v2-ink);
  font-weight: 800;
  text-align: center;
}

.v2-modal .modal__header p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #646b62;
  text-align: center;
}

.v2-modal .modal__btns {
  margin-top: 16px;
}

.v2-modal .modal__btns .btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(180deg, #45bc38 0%, var(--v2-green) 52%, var(--v2-green-2) 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 460px) {
  body {
    padding: 0;
  }

  .v2-phone {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .v2-body {
    min-height: calc(100vh - 52px);
  }
}
