@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

:root {
  --auth-bg: #040b14;
  --auth-surface: rgba(12, 19, 30, 0.92);
  --auth-border: rgba(148, 163, 184, 0.18);
  --auth-border-strong: rgba(148, 163, 184, 0.28);
  --auth-text: #edf2fb;
  --auth-text-soft: #aeb8c7;
  --auth-text-muted: #7e8ca2;
  --auth-accent: #2f80ff;
  --auth-accent-strong: #1f63d8;
  --auth-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

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

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--auth-text);
  background:
    radial-gradient(circle at top left, rgba(47, 128, 255, 0.18), transparent 32%),
    radial-gradient(circle at right center, rgba(43, 93, 176, 0.12), transparent 30%),
    linear-gradient(135deg, #02060c 0%, #08111b 52%, #030811 100%);
}

a {
  color: var(--auth-accent);
  text-decoration: none;
}

a:hover {
  color: #69a5ff;
  text-decoration: none;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 108px;
}

.auth-page-inner {
  width: 100%;
  max-width: 640px;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 36px 36px 28px;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--auth-surface);
  backdrop-filter: blur(10px);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top center, rgba(255, 255, 255, 0.04), transparent 45%);
}

.auth-card-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.auth-card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--auth-accent);
}

.auth-card h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--auth-text);
}

.auth-form {
  position: relative;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--auth-text);
  font-size: 1rem;
  font-weight: 500;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--auth-border-strong);
  border-radius: 10px;
  background: rgba(4, 10, 17, 0.96);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth-input-wrap:focus-within {
  border-color: rgba(47, 128, 255, 0.7);
  background: rgba(7, 14, 24, 0.98);
}

.auth-input-icon {
  width: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-text-muted);
  font-size: 1.2rem;
}

.auth-input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 10px;
  border: 0;
  outline: 0;
  color: var(--auth-text);
  background: rgba(4, 10, 17, 0.96);
  font-size: 1rem;
  -webkit-text-fill-color: var(--auth-text);
  caret-color: var(--auth-text);
}

.auth-input::placeholder {
  color: var(--auth-text-soft);
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(4, 10, 17, 0.96) inset;
  -webkit-text-fill-color: var(--auth-text);
  caret-color: var(--auth-text);
  transition: background-color 9999s ease-in-out 0s;
}

.auth-password-toggle {
  width: 52px;
  height: 52px;
  border: 0;
  outline: 0;
  color: var(--auth-text-soft);
  background: transparent;
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: var(--auth-text);
}

.auth-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 26px;
}

.auth-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--auth-text);
  font-weight: 400;
  cursor: pointer;
}

.auth-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--auth-accent);
}

.auth-inline-link,
.auth-inline-text {
  color: var(--auth-accent);
  font-weight: 500;
}

.auth-submit-btn {
  width: 100%;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-strong) 100%);
  color: #f8fbff;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.auth-submit-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 0;
  color: var(--auth-text-soft);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.26), transparent);
}

.auth-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 18px;
  color: var(--auth-text-soft);
  text-align: center;
}

.auth-form-errors,
.auth-field-error,
.auth-alert {
  border: 1px solid rgba(255, 110, 110, 0.25);
  background: rgba(102, 23, 23, 0.28);
  color: #ffd0d0;
  border-radius: 10px;
}

.auth-form-errors,
.auth-alert {
  padding: 12px 14px;
  margin-bottom: 18px;
}

.auth-field-error {
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.content-section {
  padding: 28px 28px 24px;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: var(--auth-surface);
}

.content-section input,
.content-section select,
.content-section textarea,
.content-section .form-control {
  color: var(--auth-text) !important;
  background: rgba(4, 10, 17, 0.96) !important;
  border: 1px solid var(--auth-border-strong) !important;
  -webkit-text-fill-color: var(--auth-text);
  caret-color: var(--auth-text);
}

.content-section input::placeholder,
.content-section textarea::placeholder,
.content-section .form-control::placeholder {
  color: var(--auth-text-soft);
}

.content-section input:focus,
.content-section select:focus,
.content-section textarea:focus,
.content-section .form-control:focus {
  color: var(--auth-text) !important;
  background: rgba(7, 14, 24, 0.98) !important;
  border-color: rgba(47, 128, 255, 0.7) !important;
  box-shadow: none !important;
}

.content-section input:-webkit-autofill,
.content-section input:-webkit-autofill:hover,
.content-section input:-webkit-autofill:focus,
.content-section input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(4, 10, 17, 0.96) inset;
  -webkit-text-fill-color: var(--auth-text);
  caret-color: var(--auth-text);
  transition: background-color 9999s ease-in-out 0s;
}

.content-section legend,
.content-section h2,
.content-section h3,
.content-section h4 {
  color: var(--auth-text);
}

.content-section .btn-outline-info {
  color: #f8fbff;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-strong) 100%);
}

.content-section .btn-outline-info:hover {
  color: #fff;
  background: linear-gradient(135deg, #3d8bff 0%, var(--auth-accent) 100%);
}

.auth-page-footer {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  text-align: center;
  z-index: 2;
}

.auth-page-brand {
  position: fixed;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  text-align: center;
  color: var(--auth-text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}

.auth-page-copy {
  color: var(--auth-text-soft);
  font-size: 0.9rem;
}

.auth-page-copy,
.auth-page-copy:hover,
.auth-page-copy:focus {
  text-decoration: none !important;
}

.tests-shell {
  overflow: hidden;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: var(--auth-surface);
}

.tests-topbar {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid var(--auth-border);
  background: rgba(4, 10, 17, 0.96);
  color: var(--auth-text);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tests-body {
  padding: 24px 20px;
}

.tests-body h2 {
  margin-bottom: 10px;
}

.text-muted {
  color: var(--auth-text-soft) !important;
}

@media (max-width: 767px) {
  .auth-page {
    padding: 16px 16px 108px;
  }

  .auth-card {
    padding: 24px 18px 22px;
    border-radius: 14px;
  }

  .auth-card-header {
    gap: 14px;
    margin-bottom: 22px;
  }

  .auth-card h1 {
    font-size: 1.75rem;
  }

  .auth-actions-row,
  .auth-footer-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-footer-note {
    align-items: center;
    gap: 6px;
  }

  .auth-page-brand {
    bottom: 46px;
  }

  .auth-page-copy {
    font-size: 0.82rem;
  }
}
