:root {
  --auth-ink: #202124;
  --auth-muted: #5f6368;
  --auth-border: #dadce0;
  --auth-blue: #1a73e8;
  --auth-blue-hover: #1765cc;
  --auth-c2c-navy: #0d1b3e;
  --auth-c2c-orange: #f5871f;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--auth-ink);
  background: #f8fafd;
  font-family: "Inter", system-ui, sans-serif;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  gap: 1.5rem;
  padding: 2rem 1.25rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--auth-c2c-navy);
  text-decoration: none;
}

.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(13, 27, 62, 0.18);
}

.auth-brand-name {
  color: #53607b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.signin-card {
  width: min(100%, 450px);
  padding: 3rem 2.75rem 2.5rem;
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  text-align: center;
}

.signin-logo {
  width: 42px;
  height: 42px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(13, 27, 62, 0.16);
}

h1 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0;
}

.signin-subtitle {
  margin: 0.75rem 0 2rem;
  color: var(--auth-muted);
  font-size: 1rem;
}

.signup-form {
  margin-top: 1.75rem;
  text-align: left;
}

.signup-email {
  margin-bottom: 1.25rem;
}

.signup-email label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--auth-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.signup-email input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--auth-border);
  border-radius: 4px;
  background: #fff;
  color: var(--auth-ink);
  font: inherit;
}

.terms-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--auth-muted);
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.55;
}

.terms-consent input {
  width: 18px;
  height: 18px;
  margin: 0.15rem 0 0;
  accent-color: var(--auth-blue);
}

.terms-consent a,
.signup-cancel {
  color: var(--auth-blue);
  font-weight: 600;
}

.form-errors {
  margin: 0.5rem 0 0 2.7rem;
  color: #b3261e;
  font-size: 0.82rem;
}

.form-errors ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.signup-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 1.5rem;
  border: 0;
  border-radius: 4px;
  background: var(--auth-blue);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.signup-submit:hover,
.signup-submit:focus-visible {
  background: var(--auth-blue-hover);
}

.signup-cancel-row {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  text-align: center;
}

.google-signin {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border-radius: 4px;
  background: var(--auth-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.google-signin-button {
  margin-top: 1.5rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.google-signin:hover,
.google-signin:focus-visible {
  background: var(--auth-blue-hover);
  box-shadow: 0 2px 5px rgba(26, 115, 232, 0.3);
}

.google-g {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-size: 0.95rem;
  font-weight: 700;
}

.signin-note {
  margin: 1.7rem 0 0;
  color: var(--auth-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.auth-help {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.85rem;
  text-align: center;
}

.auth-help a {
  color: var(--auth-blue);
  font-weight: 600;
  text-decoration: none;
}

.auth-help a:hover,
.auth-help a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .auth-shell {
    align-content: start;
    padding-top: 2.5rem;
  }

  .signin-card {
    padding: 2.5rem 1.5rem 2rem;
  }
}