:root {
  --ink: #0b0921;
  --muted: #7b7396;
  --line: #d9d8df;
  --focus: #111827;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-card {
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  gap: 14px;
}

.auth-logo {
  width: 94px;
  max-height: 94px;
  object-fit: contain;
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.notice {
  width: 100%;
  border: 1px solid #f2d27a;
  border-radius: 10px;
  padding: 9px 12px;
  color: #7a4d00;
  background: #fff9e8;
  font-size: 13px;
  text-align: center;
}

.notice.error {
  border-color: #fecaca;
  color: #991b1b;
  background: #fff1f2;
}

.success-panel {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid #d1fae5;
  border-radius: 18px;
  padding: 18px;
  color: #064e3b;
  background: #ecfdf5;
  text-align: center;
}

.success-panel img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.success-panel strong {
  color: #052e2b;
  font-size: 18px;
}

.success-panel span,
.success-panel p,
.success-panel a {
  margin: 0;
  color: #047857;
  font-size: 14px;
}

.success-panel a {
  color: #0b0921;
  text-decoration: underline;
}

form {
  width: 100%;
  margin: 0;
}

.google-button,
.continue-button {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 700;
  cursor: pointer;
}

.google-button {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  border: 1px solid var(--line);
  color: #3f3f46;
  background: var(--panel);
}

.google-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.google-mark {
  display: grid;
  place-items: center;
}

.divider {
  width: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.password-form {
  display: grid;
  gap: 10px;
}

.password-form label {
  display: grid;
  gap: 8px;
}

.password-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.password-form input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  font-size: clamp(15px, 2vw, 17px);
  outline: none;
}

.password-form input::placeholder {
  color: #9a97a7;
}

.password-form input:focus,
.google-button:focus-visible,
.continue-button:focus-visible,
.restore-form button:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, .1);
}

.continue-button {
  margin-top: 14px;
  border: 0;
  color: #fff;
  background: var(--ink);
  transition: background-color .22s ease, transform .12s ease, box-shadow .22s ease;
}

.continue-button:hover {
  background: #FE5901;
  box-shadow: 0 10px 24px rgba(254, 89, 1, .22);
}

.continue-button:active {
  transform: translateY(1px);
}

.restore-form {
  display: grid;
  place-items: center;
  margin-top: 4px;
}

.restore-form button {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.private-note {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 2vw, 15px);
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 520px) {
  .auth-page {
    align-items: start;
    padding-top: 36px;
  }

  .auth-card {
    gap: 14px;
  }

  .auth-logo {
    width: 78px;
    max-height: 78px;
  }

  .google-button,
  .continue-button,
  .password-form input {
    min-height: 46px;
    height: 46px;
  }

  .google-button {
    grid-template-columns: 44px 1fr 44px;
  }

  .password-form input {
    padding: 0 14px;
  }
}
