:root {
  --bg0: #050a14;
  --bg1: #091428;

  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.08);

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --muted2: rgba(255, 255, 255, 0.56);

  --teal: #40ffc0;
  --teal2: #2ef2b1;

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-sm: 12px;

  --ring: 0 0 0 2px rgba(64, 255, 192, 0.35);

  --font: "Manrope", "Terminal Dosis", "Space Grotesk", ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.96),
    rgba(8, 12, 22, 0.96)
  );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  opacity: 0.2;
  pointer-events: none;
  mix-blend-mode: overlay;
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
}

.auth-shell {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 44px);
}

.auth-frame {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
}

.auth-left {
  padding: clamp(22px, 4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-right {
  position: relative;
  padding: clamp(22px, 4vw, 44px);
  background: radial-gradient(
      900px 600px at 30% 15%,
      rgba(64, 255, 192, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(7, 17, 38, 0.96), rgba(6, 12, 28, 0.96));
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.auth-watermark {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 120px;
  height: 120px;
  opacity: 0.14;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.panel {
  width: min(480px, 100%);
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
@keyframes panelIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.2px;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(64, 255, 192, 0.12);
  border: 1px solid rgba(64, 255, 192, 0.25);
  color: var(--teal);
  flex: 0 0 auto;
}

.title {
  font-size: 28px;
  margin: 0 0 6px 0;
  letter-spacing: 0.2px;
}
.subtitle {
  margin: 0 0 18px 0;
  color: var(--muted2);
  font-size: 14px;
  line-height: 1.5;
}

.field {
  margin-bottom: 14px;
}
.label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px 2px;
  letter-spacing: 0.2px;
}
.label a {
  color: var(--muted);
  text-decoration: none;
}
.label a:hover {
  color: var(--teal);
}

.input-wrap {
  position: relative;
}
.icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

input {
  width: 100%;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  padding: 0 44px 0 42px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
}
input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
input:focus {
  border-color: rgba(64, 255, 192, 0.65);
  box-shadow: var(--ring);
  background: rgba(0, 0, 0, 0.26);
}

.suffix-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.suffix-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.helper,
.note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12.5px;
  line-height: 1.45;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 14px;
}

.btn {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  color: #02110c;
  background: linear-gradient(135deg, var(--teal2), var(--teal));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  height: 44px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.btn-ghost {
  margin-top: 10px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-outline {
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(64, 255, 192, 0.4);
  color: var(--teal);
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}
.btn-outline:hover {
  background: rgba(64, 255, 192, 0.1);
}

.btn-link-outline {
  font-size: 12px;
  height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(64, 255, 192, 0.4);
  color: var(--teal);
  cursor: pointer;
  font-weight: 400;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.btn-link-outline:hover {
  background: rgba(64, 255, 192, 0.1);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
}

.alert {
  margin: 0 0 12px;
  padding: 12px 12px;
  border-radius: 14px;
  font-size: 13px;
  display: none;
}
.alert-error {
  border: 1px solid rgba(255, 120, 120, 0.25);
  background: rgba(255, 120, 120, 0.1);
  color: rgba(255, 255, 255, 0.86);
}
.alert-success {
  border: 1px solid rgba(64, 255, 192, 0.22);
  background: rgba(64, 255, 192, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.small-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.small-link:hover {
  color: var(--teal);
}

.info {
  width: min(420px, 100%);
}
.info h2 {
  margin: 0 0 10px 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.info p {
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: grid;
  gap: 10px;
}
.list li {
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.4;
}
.badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(64, 255, 192, 0.12);
  border: 1px solid rgba(64, 255, 192, 0.22);
  color: var(--teal);
  font-weight: 700;
  font-size: 12px;
  flex: 0 0 auto;
  margin-top: 1px;
}

/* ===============================
   Dechefr Auth Alerts
================================ */
.auth-alert-wrap {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-alert:empty {
  display: none !important;
}
.msg:empty {
  display: none !important;
}

.auth-alert {
  position: relative;
  padding: 12px 42px 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.35;
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
  animation: fadeIn 0.2s ease-out;
}

/* Close button */
.auth-alert .close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  background: transparent;
  color: inherit;
  opacity: 0.7;
}
.auth-alert .close:hover {
  opacity: 1;
}

/* Variants */
.auth-alert.error {
  background: rgba(255, 80, 110, 0.12);
  border-color: rgba(255, 80, 110, 0.35);
  color: #ff8fa3;
}

.auth-alert.success {
  background: rgba(64, 255, 192, 0.12);
  border-color: rgba(64, 255, 192, 0.35);
  color: #7fffd4;
}

.auth-alert.warning {
  background: rgba(255, 200, 120, 0.12);
  border-color: rgba(255, 200, 120, 0.35);
  color: #ffd59a;
}

.auth-alert.info {
  background: rgba(120, 170, 255, 0.12);
  border-color: rgba(120, 170, 255, 0.35);
  color: #b8ccff;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .auth-frame {
    grid-template-columns: 1fr;
  }
  .auth-right {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .auth-watermark {
    right: 18px;
    top: 16px;
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 520px) {
  .panel {
    padding: 22px;
    border-radius: 16px;
  }
  .auth-left {
    padding: 18px;
  }
  .auth-right {
    padding: 20px;
  }
}
