:root {
  --auth-bg: #f3f4f7;
  --auth-blue: #2f5bff;
  --auth-blue-hover: #2448d6;
  --auth-link: #1a5cff;
  --auth-text: #1a1a1a;
  --auth-muted: #4a4a4a;
  --auth-border: #cfd3dc;
  --auth-font: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.auth-page {
  margin: 0;
  min-height: 100vh;
  background: var(--auth-bg);
  font-family: var(--auth-font);
  color: var(--auth-text);
}

.auth-page * {
  box-sizing: border-box;
}

.auth-top {
  background: #fff;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
  padding: 7px 12px 7px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.auth-logo:hover {
  text-decoration: none;
  color: #fff;
}

.auth-logo svg {
  display: block;
}
.auth-logo.has-logo {
  background: transparent;
  padding: 0;
}
.auth-logo.has-logo svg,
.auth-logo.has-logo .logo-text,
.site-logo-img.is-on ~ svg,
.site-logo-img.is-on ~ .logo-fallback,
.site-logo-img.is-on ~ .logo-text {
  display: none !important;
}
.site-logo-img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: invert(1);
}
.site-logo-img.is-on { display: block; }

.auth-main {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 16px 80px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.1);
  padding: 36px 36px 28px;
  text-align: center;
}

.auth-badge {
  width: 56px;
  height: 56px;
  margin: 4px auto 18px;
  border-radius: 50%;
  background: var(--auth-blue);
  display: grid;
  place-items: center;
}

.auth-card h1 {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-form {
  text-align: left;
}

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--auth-muted);
  margin-bottom: 6px;
}

.auth-form input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.auth-form input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.15);
}

.auth-next {
  width: 100%;
  margin-top: 16px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--auth-blue);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.auth-next:hover {
  background: var(--auth-blue-hover);
}

.auth-links {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: center;
}

.auth-links a {
  color: var(--auth-link);
  font-size: 15px;
  text-decoration: underline;
}

.auth-rule {
  border: 0;
  border-top: 1px solid #e4e6eb;
  margin: 22px 0 18px;
}

.auth-foot {
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: var(--auth-text);
}

.auth-foot a {
  color: var(--auth-link);
  text-decoration: underline;
  font-weight: 500;
}

.auth-error {
  display: none;
  margin: 0 0 12px;
  color: #b42318;
  font-size: 13px;
}

.auth-error.show {
  display: block;
}

.auth-hidden {
  display: none;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px 22px;
    box-shadow: none;
    border-radius: 12px;
  }

  .auth-main {
    padding-top: 28px;
  }
}
