:root {
  --auth-bg: #131a27;
  --auth-bg-2: #1a2434;
  --auth-card: rgba(25, 34, 50, 0.92);
  --auth-line: rgba(108, 138, 198, 0.4);
  --auth-text: #f2f4fb;
  --auth-muted: #9eacc7;
  --auth-accent: #ff8b2b;
  --auth-accent-2: #5f8cff;
  --auth-danger-bg: #f7e4e8;
  --auth-danger-text: #da3f5d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: var(--auth-bg);
  color: var(--auth-text);
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 139, 43, 0.12), transparent 24%),
    radial-gradient(circle at 82% 26%, rgba(95, 140, 255, 0.11), transparent 20%),
    linear-gradient(145deg, var(--auth-bg) 0%, var(--auth-bg-2) 100%);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 700px);
  padding: 34px;
  border-radius: 30px;
  border: 1px solid var(--auth-line);
  background: var(--auth-card);
  box-shadow: 0 26px 70px rgba(2, 8, 18, 0.34);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, var(--auth-accent), var(--auth-accent-2));
}

.auth-card__topline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.auth-brand-mark {
  position: relative;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(43, 57, 87, 0.98), rgba(30, 40, 63, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 24px rgba(5, 10, 20, 0.2);
}

.auth-brand-mark__dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffb55d 0%, #fb6509 100%);
  top: 12px;
  left: 12px;
  box-shadow: 0 0 18px rgba(251, 101, 9, 0.28);
}

.auth-brand-mark__dot--small {
  width: 9px;
  height: 9px;
  top: 23px;
  left: 23px;
  background: linear-gradient(180deg, #ffd58a 0%, #f1b74d 100%);
  box-shadow: 0 0 12px rgba(241, 183, 77, 0.24);
}

.auth-card__label {
  color: #f6f8ff;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.auth-card__title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.1vw, 2.6rem);
  line-height: 1.06;
  white-space: nowrap;
}

.auth-card__text {
  margin: 0 0 20px;
  max-width: 560px;
  color: var(--auth-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.auth-card__error {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--auth-danger-bg);
  color: var(--auth-danger-text);
  font-size: 0.98rem;
}

.auth-card__actions {
  display: flex;
  justify-content: flex-start;
}

.auth-card__button {
  min-width: min(100%, 340px);
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #a16de2, #d38b43);
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
  transition: transform 260ms ease, box-shadow 260ms ease, opacity 220ms ease, filter 260ms ease;
}

.auth-card__button:hover,
.auth-card__button:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 16px 32px rgba(161, 109, 226, 0.2);
}

.auth-card__button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.auth-card__hint {
  margin: 14px 0 0;
  color: var(--auth-muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .auth-card {
    width: min(100%, 560px);
    padding: 28px 24px 26px;
  }

  .auth-card__title {
    white-space: normal;
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .auth-card__label {
    font-size: 1.48rem;
  }

  .auth-card__actions {
    justify-content: stretch;
  }

  .auth-card__button {
    width: 100%;
    min-width: 0;
  }
}
