:root {
  --auth-bg: #141214;
  --auth-panel: rgba(23, 21, 29, 0.82);
  --auth-panel-strong: rgba(34, 31, 42, 0.72);
  --auth-border: rgba(171, 126, 255, 0.22);
  --auth-muted: rgba(255, 255, 255, 0.58);
  --auth-text: #ffffff;
  --auth-primary: #7e43f5;
  --auth-primary-strong: #8f5cff;
  --auth-hover: rgba(255, 255, 255, 0.08);
}

body.slicky-auth {
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  color: var(--auth-text);
  font-family: "Geist", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(farthest-corner circle at 0% 0%, rgba(126, 67, 245, 0.95) 0 10%, rgba(64, 37, 110, 0.92) 20%, rgba(20, 18, 20, 0) 38%),
    radial-gradient(circle at 85% 18%, rgba(126, 67, 245, 0.24), rgba(20, 18, 20, 0) 28%),
    linear-gradient(135deg, #0c0a0f 0%, #141214 48%, #1b1427 100%);
  isolation: isolate;
}

body.slicky-auth::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.95;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

body.slicky-auth::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -140px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(126, 67, 245, 0.18);
  filter: blur(70px);
}

body.slicky-auth .navbar {
  display: none;
}

body.slicky-auth main.container {
  min-height: 100dvh;
  width: min(1180px, calc(100% - 32px));
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.auth-shell {
  width: min(617px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.auth-brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--auth-text);
  background: linear-gradient(145deg, rgba(126, 67, 245, 0.95), rgba(255, 255, 255, 0.08));
  box-shadow: 0 22px 70px rgba(126, 67, 245, 0.55);
}

.auth-brand-mark svg {
  width: 30px;
  height: 30px;
}

.auth-welcome {
  text-align: center;
}

.auth-welcome h1 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 10px;
}

.auth-welcome p {
  color: var(--auth-muted);
  font-size: 18px;
  margin: 0;
}

.auth-panel {
  width: 100%;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 44px 48px;
  border: 1px solid var(--auth-border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    var(--auth-panel);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.auth-panel-title {
  text-align: center;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}

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

.auth-field .form-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.auth-field .form-control {
  min-height: 48px;
  color: var(--auth-text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  box-shadow: none;
}

.auth-field .form-control:focus {
  color: var(--auth-text);
  background: rgba(128, 128, 128, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
  outline: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-field .form-control::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.auth-submit {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  color: var(--auth-text);
  background: var(--auth-primary);
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 16px 44px rgba(126, 67, 245, 0.42);
}

.auth-submit:hover,
.auth-submit:focus {
  background: var(--auth-primary-strong);
  color: var(--auth-text);
}

.auth-alert {
  color: #ffd8df;
  background: rgba(244, 67, 54, 0.13);
  border-color: rgba(244, 67, 54, 0.3);
}

.auth-meta {
  color: var(--auth-muted);
  font-size: 14px;
  text-align: center;
  margin: 0;
}

@media (max-width: 640px) {
  body.slicky-auth {
    overflow: auto;
  }

  .auth-shell {
    gap: 30px;
  }

  .auth-panel {
    min-height: 0;
    padding: 30px 22px;
    border-radius: 20px;
  }

  .auth-welcome h1 {
    font-size: 28px;
  }
}
