:root {
  --auth-gold: #f4c95d;
  --auth-gold-strong: #ffd978;
  --auth-panel: rgba(12, 14, 20, 0.88);
  --auth-panel-soft: rgba(255, 255, 255, 0.055);
  --auth-border: rgba(244, 201, 93, 0.22);
  --auth-text: #f4f0e6;
  --auth-muted: #a9adba;
  --auth-danger: #ff6b6b;
  --auth-success: #5dff99;
}

.auth-page {
  min-height: 100vh;
  color: var(--auth-text);
  background:
    radial-gradient(circle at top left, rgba(244, 201, 93, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(95, 144, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(3, 6, 12, 0.48), rgba(3, 6, 12, 0.92));
}

.auth-page .nk-page-background::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 6, 12, 0.08), rgba(3, 6, 12, 0.84)),
    radial-gradient(circle at 50% 12%, rgba(244, 201, 93, 0.12), transparent 36%);
}

.auth-shell {
  min-height: 100vh;
  padding: 72px 15px;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--auth-border);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--auth-panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(244, 201, 93, 0.13) 48%, transparent 72%),
    radial-gradient(circle at 86% 10%, rgba(244, 201, 93, 0.2), transparent 24%);
}

.auth-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 217, 120, 0.75), transparent);
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 13px;
  border: 1px solid rgba(244, 201, 93, 0.3);
  border-radius: 999px;
  color: var(--auth-gold-strong);
  background: rgba(244, 201, 93, 0.09);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-title {
  margin: 0 0 10px;
  color: var(--auth-text);
  font-family: "Marcellus SC", serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 0.98;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
}

.auth-subtitle {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--auth-muted);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form label,
.auth-form .form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-gold-strong);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

.auth-form .form-control {
  height: auto;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  color: var(--auth-text);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 17px !important;
  letter-spacing: 0.02em;
  margin-bottom: 0 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-form .form-control:focus {
  border-color: rgba(255, 217, 120, 0.72);
  background: rgba(0, 0, 0, 0.46);
  box-shadow: 0 0 0 3px rgba(244, 201, 93, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
}

.auth-form .form-control::placeholder {
  color: rgba(244, 240, 230, 0.45);
}

.auth-actions {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-top: 8px;
}

.auth-primary-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 270px);
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid rgba(255, 217, 120, 0.42);
  border-radius: 999px;
  overflow: hidden;
  color: #241302;
  background:
    linear-gradient(135deg, #ffe59b 0%, #f3bd43 46%, #d88817 100%);
  box-shadow:
    0 14px 34px rgba(216, 136, 23, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-family: "Marcellus SC", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-primary-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
}

.auth-primary-btn::after {
  content: "";
  position: absolute;
  inset: -45% -30%;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-90%);
  transition: transform 0.55s ease;
}

.auth-primary-btn:hover,
.auth-primary-btn:focus {
  color: #120900;
  border-color: rgba(255, 237, 176, 0.78);
  box-shadow:
    0 18px 46px rgba(244, 201, 93, 0.34),
    0 0 0 4px rgba(244, 201, 93, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transform: translateY(-2px);
}

.auth-primary-btn:hover::after,
.auth-primary-btn:focus::after {
  transform: translateX(90%);
}

.auth-primary-btn:active {
  transform: translateY(0);
}

.auth-page .swal2-container {
  padding: 22px;
  background: rgba(3, 6, 12, 0.54) !important;
  backdrop-filter: blur(5px);
}

.auth-page .auth-swal {
  position: relative;
  overflow: hidden;
  width: min(92vw, 520px);
  padding: 42px clamp(24px, 5vw, 46px) 36px;
  border: 1px solid var(--auth-border);
  border-radius: 0;
  color: var(--auth-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(8, 10, 16, 0.95);
  box-shadow:
    0 30px 95px rgba(0, 0, 0, 0.66),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.auth-page .auth-swal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(244, 201, 93, 0.13) 48%, transparent 72%),
    radial-gradient(circle at 50% 0%, rgba(244, 201, 93, 0.2), transparent 34%);
}

.auth-page .auth-swal::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 217, 120, 0.78), transparent);
}

.auth-page .auth-swal > * {
  position: relative;
  z-index: 1;
}

.auth-page .auth-swal-icon {
  margin: 0 auto 24px;
  border-color: rgba(244, 201, 93, 0.42) !important;
  color: var(--auth-gold-strong) !important;
  background: rgba(3, 6, 12, 0.36) !important;
  box-shadow:
    0 0 0 8px rgba(244, 201, 93, 0.07),
    0 0 42px rgba(244, 201, 93, 0.18);
}

.auth-page .auth-swal .swal2-success-ring {
  border-color: rgba(93, 255, 153, 0.48) !important;
  box-shadow:
    inset 0 0 24px rgba(93, 255, 153, 0.08),
    0 0 28px rgba(93, 255, 153, 0.14);
}

.auth-page .auth-swal .swal2-success-circular-line-left,
.auth-page .auth-swal .swal2-success-circular-line-right,
.auth-page .auth-swal .swal2-success-fix {
  display: none !important;
}

.auth-page .auth-swal .swal2-success-line-tip,
.auth-page .auth-swal .swal2-success-line-long {
  background-color: var(--auth-success) !important;
  box-shadow: 0 0 14px rgba(93, 255, 153, 0.28);
}

.auth-page .auth-swal-error .auth-swal-icon {
  border-color: rgba(255, 107, 107, 0.42) !important;
  color: var(--auth-danger) !important;
  box-shadow:
    0 0 0 8px rgba(255, 107, 107, 0.07),
    0 0 42px rgba(255, 107, 107, 0.16);
}

.auth-page .auth-swal-warning .auth-swal-icon {
  border-color: rgba(255, 217, 120, 0.48) !important;
  color: var(--auth-gold-strong) !important;
}

.auth-page .auth-swal-title {
  margin: 0;
  padding: 0;
  color: var(--auth-text);
  font-family: "Marcellus SC", serif;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.62);
}

.auth-page .auth-swal-text {
  margin: 18px auto 0;
  padding: 0;
  color: var(--auth-muted);
  font-size: 16px;
  line-height: 1.65;
}

.auth-page .auth-swal .swal2-actions {
  margin-top: 28px;
}

.auth-page .auth-swal-confirm {
  position: relative;
  isolation: isolate;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid rgba(255, 217, 120, 0.42);
  border-radius: 999px;
  overflow: hidden;
  color: #241302;
  background: linear-gradient(135deg, #ffe59b 0%, #f3bd43 46%, #d88817 100%);
  box-shadow:
    0 14px 34px rgba(216, 136, 23, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-family: "Marcellus SC", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-page .auth-swal-confirm::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
}

.auth-page .auth-swal-confirm::after {
  content: "";
  position: absolute;
  inset: -45% -30%;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-90%);
  transition: transform 0.55s ease;
}

.auth-page .auth-swal-confirm:hover,
.auth-page .auth-swal-confirm:focus {
  border-color: rgba(255, 237, 176, 0.78);
  box-shadow:
    0 18px 46px rgba(244, 201, 93, 0.34),
    0 0 0 4px rgba(244, 201, 93, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  outline: none;
  transform: translateY(-2px);
}

.auth-page .auth-swal-confirm:hover::after,
.auth-page .auth-swal-confirm:focus::after {
  transform: translateX(90%);
}

.auth-page .auth-swal-confirm:active {
  transform: translateY(0);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 8px;
  color: var(--auth-muted);
  line-height: 1.6;
}

.auth-link {
  color: var(--auth-gold-strong);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.auth-link:hover,
.auth-link:focus {
  color: #fff0b8;
  text-decoration: none;
  text-shadow: 0 0 16px rgba(244, 201, 93, 0.46);
}

.auth-message,
.auth-card .error,
.auth-card .success {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.auth-card .error,
.auth-message.error {
  color: var(--auth-danger) !important;
  border-color: rgba(255, 107, 107, 0.28);
}

.auth-card .success,
.auth-message.success {
  color: var(--auth-success) !important;
  border-color: rgba(93, 255, 153, 0.28);
}

.auth-card small {
  color: var(--auth-gold-strong) !important;
  font-size: 13px !important;
}


.auth-page .nk-box.bg-dark-1,
.auth-page .reset-page-content {
  background: transparent !important;
}

.auth-page .forgot-password-container,
.auth-page .reset-password-container,
.auth-page .dark-overlay-box {
  display: block;
  min-height: auto;
  margin: 0;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-page .forgot-password-container {
  width: min(100%, 560px);
  margin-inline: auto;
  padding: clamp(30px, 3.6vw, 42px) clamp(28px, 4.5vw, 54px);
}

.auth-page .forgot-password-container .auth-title {
  font-size: clamp(36px, 4.4vw, 50px);
  overflow-wrap: normal;
  word-break: normal;
}

.auth-page .forgot-password-container .auth-form {
  max-width: 390px;
  margin-inline: auto;
}

.auth-page .nk-error-overlay {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.auth-page .nk-error-box {
  border: 1px solid var(--auth-border);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 10, 16, 0.94);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.5);
}

@media (max-width: 575.98px) {
  .auth-shell {
    padding: 44px 15px;
  }

  .auth-card {
    padding: 26px 20px;
  }

  .auth-primary-btn {
    width: 100%;
  }

  .auth-links {
    flex-direction: column;
  }
}