:root {
  color-scheme: light;
  font-family: 'Google Sans Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f6f8fc;
  color: #152033;

  --accent: #1967d2;
  --accent-strong: #0b57c5;
  --accent-teal: #0f9f8f;
  --accent-warm: #f97316;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-logo {
  position: fixed;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  height: 56px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #dfe7f3;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(34, 55, 88, 0.08);
  z-index: 10;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(25, 103, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 103, 210, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 56%, #eef3fb 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

body::before {
  content: '';
  position: fixed;
  right: max(28px, calc((100vw - 980px) / 2));
  top: 88px;
  width: 320px;
  height: 160px;
  border: 1px solid rgba(25, 103, 210, 0.12);
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(90deg, rgba(25, 103, 210, 0.06), rgba(15, 159, 143, 0.06)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(25, 103, 210, 0.09) 22px 23px);
  transform: rotate(-6deg);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  left: max(24px, calc((100vw - 1040px) / 2));
  bottom: 72px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.06), rgba(255, 255, 255, 0.3)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(249, 115, 22, 0.08) 18px 19px);
  transform: rotate(8deg);
  pointer-events: none;
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  padding: 24px;
}

.auth-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dfe7f3;
  border-radius: 16px;
  padding: 32px;
  box-shadow:
    0 18px 48px rgba(34, 55, 88, 0.12),
    0 6px 18px rgba(25, 103, 210, 0.08);
  backdrop-filter: none;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-teal) 58%, var(--accent-warm));
}

.auth-card__header h1 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.auth-card__header p {
  margin: 0 0 24px;
  color: #5c6b7e;
  font-size: 0.9rem;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: #3f4d5f;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d7e2f0;
  background: #f8fbff;
  color: inherit;
  font-size: 0.95rem;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.auth-field input:focus-visible {
  outline: 2px solid rgba(25, 103, 210, 0.34);
  outline-offset: 2px;
  border-color: #9bb8df;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(25, 103, 210, 0.1);
}

.auth-submit {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, #1967d2, #2b7be8 55%, #4e8ff0);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(25, 103, 210, 0.22);
}

.auth-error {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c03434;
  text-align: center;
}

.auth-hint {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #dfe7f3;
  color: #7a889b;
  font-size: 0.84rem;
  text-align: center;
}

code {
  background: #e8f1ff;
  padding: 2px 6px;
  border-radius: 6px;
  color: #152033;
}

@media (max-width: 480px) {
  .auth-logo {
    top: 16px;
    left: 16px;
    width: 132px;
    height: 46px;
  }

  .auth-wrapper {
    padding-top: 88px;
  }
}
