:root {
  --bg: #deeaf5;
  --panel: rgba(255, 255, 255, 0.08);
  --text: #484646;
  --muted: #828282;
  --line: rgba(130, 130, 130, 0.45);
  --pink: #f973b4;
  --blue: #08577e;
}

* {
  box-sizing: border-box;
}

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

body {
  background: linear-gradient(180deg, #deeaf5 0%, #ebe3eb 100%);
}

.home {
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #deeaf5 0%, #ebe3eb 100%);
}

.home-frame {
  position: relative;
  width: min(100vw, calc(100vh * 1.6));
  height: auto;
  max-height: 100vh;
}

.home-screen {
  display: block;
  width: 100%;
  height: auto;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  font-family: Arial, "Noto Sans KR", sans-serif;
  pointer-events: none;
}

.email-field,
.email-submit,
.google-submit {
  position: absolute;
  width: 27.7778%;
  height: 4.4444%;
  border-radius: 8px;
  font-size: clamp(12px, 1.1111vw, 16px);
  pointer-events: auto;
}

.email-field {
  top: 42.5556%;
  left: 36.1139%;
  border: 0;
  background: #fff;
  color: #111;
  outline: none;
  padding: 0 min(1.1111vw, 16px);
}

.email-field::placeholder {
  color: #828282;
}

.email-field:focus {
  box-shadow: inset 0 0 0 2px rgba(249, 115, 180, 0.36);
}

.email-submit {
  top: 48.7778%;
  left: 36.1139%;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.google-submit {
  top: 62.3333%;
  left: 36.1111%;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.email-submit:focus-visible,
.google-submit:focus-visible {
  outline: 2px solid rgba(249, 115, 180, 0.78);
  outline-offset: 2px;
}

.signup-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #deeaf5 0%, #ebe3eb 100%);
  color: var(--text);
  font-family: Arial, "Noto Sans KR", sans-serif;
  padding: 28px 16px;
}

.signup-card {
  display: grid;
  width: min(92vw, 488px);
  min-height: 627px;
  justify-items: center;
  align-content: start;
  gap: 10px;
  border: 2px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #deeaf5 0%, #ebe3eb 100%) padding-box,
    linear-gradient(180deg, rgba(8, 87, 126, 0.3), rgba(249, 115, 180, 0.3)) border-box;
  padding: 42px 44px 24px;
}

.signup-logo {
  position: relative;
  width: 280px;
  height: 56px;
  overflow: hidden;
}

.signup-logo img {
  position: absolute;
  top: -206px;
  left: -580px;
  width: 1440px;
  height: 900px;
  max-width: none;
}

.signup-card h1,
.signup-card p {
  margin: 0;
}

.signup-copy {
  display: grid;
  gap: 5px;
  text-align: center;
}

.signup-copy h1 {
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
}

.signup-copy p {
  color: var(--muted);
  font-size: 13px;
}

.signup-form {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-top: 6px;
}

.signup-label {
  display: grid;
  gap: 5px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.signup-label input {
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 15px;
  outline: none;
  padding: 0 13px;
}

.signup-label input:focus {
  box-shadow: inset 0 0 0 2px rgba(249, 115, 180, 0.36);
}

.terms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.terms-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}

.verify-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 12px;
}

.verify-box strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 13px;
}

.verify-box p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.primary-button,
.secondary-button {
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.primary-button {
  height: 40px;
  border: 0;
  background: linear-gradient(90deg, #f7deff 0%, #cfdbfa 100%);
  color: var(--text);
}

.secondary-button {
  min-width: 128px;
  height: 34px;
  border: 0;
  background: linear-gradient(90deg, #f973b4 0%, #08577e 100%);
  color: #fff;
  font-size: 12px;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.back-link:focus-visible {
  outline: 2px solid rgba(249, 115, 180, 0.78);
  outline-offset: 2px;
}

.form-message {
  min-height: 15px;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.4;
}

.back-link {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 520px) {
  .signup-page {
    align-items: start;
    overflow: auto;
  }

  .signup-card {
    min-height: auto;
    padding: 34px 22px 28px;
  }

  .verify-box {
    align-items: stretch;
    flex-direction: column;
  }

  .secondary-button {
    width: 100%;
  }
}
