.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 20px 54px;
  background: radial-gradient(900px 360px at 75% 10%, rgba(255, 173, 92, 0.08), transparent 60%),
    radial-gradient(600px 400px at 15% 90%, rgba(255, 140, 0, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(4, 4, 6, 0.78), rgba(6, 6, 10, 0.88)),
    url("../img/background-image.jpg") center/cover no-repeat fixed;
}

.auth-shell {
  width: min(1100px, 100%);
  padding: 30px;
  border-radius: 24px;
  border: 1px solid rgba(242, 164, 76, 0.18);
  background: linear-gradient(160deg, rgba(10, 10, 12, 0.82), rgba(7, 7, 9, 0.92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.auth-shell--compact {
  width: min(560px, 100%);
}

.auth-header,
.auth-logo,
.auth-cta,
.auth-body,
.auth-tabs,
.auth-field,
.auth-helper {
  display: flex;
}

.auth-header {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  font-family: "New Rocker", "Cinzel", serif;
  letter-spacing: 1px;
}

.auth-logo {
  align-items: center;
  gap: 12px;
  color: #ffbf73;
}

.auth-logo span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 164, 76, 0.45);
  background: rgba(242, 164, 76, 0.12);
}

.auth-cta {
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-cta a,
.auth-submit {
  text-decoration: none;
  border-radius: 999px;
}

.auth-cta a {
  padding: 10px 18px;
  border: 1px solid rgba(242, 164, 76, 0.2);
  color: #f3f0e9;
  background: rgba(14, 14, 16, 0.7);
}

.auth-cta a.active,
.auth-submit {
  background: linear-gradient(120deg, #e49a42, #ffb869);
  color: #12110e;
  border: none;
  box-shadow: 0 8px 20px rgba(255, 173, 92, 0.35);
}

.auth-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}

.auth-art {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
  background: url("../img/popup-image.jpg") center/cover no-repeat;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 8, 10, 0.85), rgba(8, 8, 10, 0.3) 50%, rgba(8, 8, 10, 0.95));
}

.auth-panel {
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 20, 24, 0.95), rgba(12, 12, 15, 0.98));
  border: 1px solid rgba(255, 186, 104, 0.18);
  padding: 32px 36px 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  font-family: "Cinzel", "Times New Roman", serif;
}

.auth-panel--centered {
  width: 100%;
}

.auth-heading {
  margin: 0 0 18px;
  color: #ffbf73;
  font-size: 24px;
  font-weight: 700;
}

.auth-announcement {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 186, 104, 0.3);
  background: linear-gradient(120deg, rgba(226, 154, 66, 0.16), rgba(255, 193, 117, 0.1));
  color: #f7e7cf;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  margin: -6px 0 12px;
}

.auth-tabs {
  gap: 20px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.auth-tabs a {
  color: rgba(255, 255, 255, 0.35);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.auth-tabs a.active {
  color: #ffbf73;
  border-color: #f2a44c;
}

.auth-subtitle,
.auth-footer {
  color: #b9b1a4;
  font-size: 14px;
}

.auth-field {
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-field label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.auth-field input {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 11, 0.9);
  color: #f2f0e8;
  font-size: 15px;
  outline: none;
}

.auth-field input:focus {
  border-color: rgba(255, 178, 97, 0.7);
  box-shadow: 0 0 0 3px rgba(242, 164, 76, 0.18);
}

.auth-field.auth-checkbox {
  gap: 8px;
}

.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.7);
}

.auth-checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 9, 11, 0.9);
  box-shadow: none;
  accent-color: #f2a44c;
}

.auth-note {
  background: rgba(250, 198, 104, 0.15);
  border: 1px solid rgba(242, 164, 76, 0.4);
  color: #f8e4c6;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-helper {
  justify-content: flex-end;
  font-size: 12px;
}

.auth-help {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.auth-helper a,
.auth-footer a {
  color: #ffbf73;
  text-decoration: none;
}

.auth-class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.auth-class-card {
  position: relative;
  cursor: pointer;
  display: flex;
}

.auth-class-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-class-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 186, 104, 0.2);
  padding: 14px 16px;
  background: rgba(12, 12, 16, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-class-card input:checked + .auth-class-body {
  border-color: rgba(255, 186, 104, 0.75);
  box-shadow: 0 12px 26px rgba(255, 173, 92, 0.2);
  transform: translateY(-2px);
}

.auth-class-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffcf95;
  margin-bottom: 6px;
}

.auth-class-summary {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.auth-class-highlights {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.auth-submit {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-error {
  background: rgba(186, 28, 28, 0.85);
  border: 1px solid rgba(255, 107, 107, 0.6);
  color: #fff3f3;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-success {
  background: rgba(24, 120, 72, 0.35);
  border: 1px solid rgba(124, 214, 177, 0.6);
  color: #e7fff4;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-success a {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .auth-body {
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 260px;
  }

  .auth-class-grid {
    grid-template-columns: 1fr;
  }
}
