:root {
  --auth-bg: #f0f0f0;
  --card: #fff;
  --text: #343434;
  --muted: #555;
  --blue: #5d9ace;
  --blue-dark: #4f8dc0;
  --link: #06f;
  --shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--auth-bg);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.auth-hero {
  position: relative;
  height: 136px;
  overflow: hidden;
  background: #fff;
}

.hero-band {
  position: absolute;
  inset: 0 110px;
  overflow: hidden;
  transform: skewX(-18deg);
}

.hero-photo {
  position: absolute;
  inset: 0 -80px;
  transform: skewX(18deg);
  background:
    linear-gradient(90deg, rgba(0, 131, 68, 0.9), rgba(255, 186, 0, 0.78), rgba(237, 95, 37, 0.85)),
    radial-gradient(circle at 51% 42%, rgba(0, 0, 0, 0.35), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 34%),
    #78806f;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 18%, rgba(255, 255, 255, 0.18) 19% 21%, transparent 22%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 24px);
  opacity: 0.55;
}

.hero-badge {
  position: absolute;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 125px;
  height: 136px;
  background: #fff;
}

.hero-badge-left {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0% 100%);
}

.hero-badge-right {
  right: 0;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-badge img {
  max-width: 75px;
  max-height: 75px;
}

.crest-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 78px;
  border: 2px solid #222;
  border-radius: 12px 12px 28px 28px;
  color: #174d24;
  background: linear-gradient(90deg, #0a8b4a 0 33%, #e6c328 33% 66%, #c9242d 66%);
  font-weight: 700;
}

.auth-page {
  min-height: calc(100vh - 236px);
  padding: 44px 20px 54px;
  text-align: center;
}

.auth-view h1,
.auth-card h1 {
  margin: 10px 0 58px;
  color: #050505;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.1;
}

.auth-card h1 {
  margin: 0 0 18px;
  color: #333;
  font-size: 32px;
}

.auth-card {
  width: min(100%, 500px);
  margin: 0 auto;
  padding: 28px 26px 28px;
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
}

.auth-card-wide {
  width: min(100%, 505px);
}

.auth-card label {
  display: block;
  margin-bottom: 26px;
}

.auth-card label span {
  display: block;
  margin-bottom: 12px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}

.auth-card input,
.auth-card select {
  display: block;
  width: 100%;
  height: 56px;
  margin-bottom: 20px;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  padding: 0 14px;
  color: #444;
  background: #fff;
  font-size: 20px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-card label input {
  margin-bottom: 0;
}

.auth-card input::placeholder {
  color: #999;
}

.auth-card button {
  width: 100%;
  height: 44px;
  margin: 0 0 24px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--blue);
  font-size: 18px;
  font-weight: 700;
  cursor: default;
}

.auth-card button:hover {
  background: var(--blue-dark);
}

.auth-card[aria-disabled="true"] input,
.auth-card[aria-disabled="true"] select,
.auth-card[aria-disabled="true"] button {
  opacity: 0.62;
  cursor: not-allowed;
}

.auth-card[aria-disabled="true"] button:hover {
  background: var(--blue);
}

.auth-card p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
  text-align: center;
}

.auth-card a,
.auth-footer a {
  color: var(--link);
  text-decoration: none;
}

.mock-notice {
  width: fit-content;
  margin: -26px auto 20px;
  padding: 6px 12px;
  border: 1px solid rgba(191, 45, 45, 0.3);
  border-radius: 999px;
  color: #a72b2b;
  background: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
}

.auth-footer {
  min-height: 100px;
  padding: 18px 20px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  color: #333;
  background: #f4f4f4;
  text-align: center;
  font-size: 18px;
}

.auth-footer p {
  margin: 0 0 14px;
}

@media (max-width: 700px) {
  .auth-hero {
    height: 92px;
  }

  .hero-band {
    inset: 0 70px;
  }

  .hero-badge {
    width: 78px;
    height: 92px;
  }

  .hero-badge img {
    max-width: 48px;
    max-height: 48px;
  }

  .crest-mark {
    width: 46px;
    height: 52px;
    font-size: 13px;
  }

  .auth-page {
    min-height: calc(100vh - 182px);
    padding: 30px 14px 44px;
  }

  .auth-view h1 {
    margin-bottom: 34px;
    font-size: 36px;
  }

  .auth-card h1 {
    font-size: 27px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .auth-card input,
  .auth-card select {
    height: 52px;
    font-size: 18px;
  }

  .auth-card p,
  .auth-footer {
    font-size: 16px;
  }
}
