:root {
  --bg: #f7f6fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --text: #0f172a;
  --muted: #64748b;
  --blue: #7145fe;
  --blue-dark: #7145fe;
  --blue-tint: #f0ebff;
  --green-bg: #dcfce7;
  --green-text: #16a34a;
  --red-bg: #fee2e2;
  --red-text: #dc2626;
  --radius: 16px;
  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 10px 30px -5px rgba(0, 104, 249, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
}

a {
  text-decoration: none;
  color: inherit;
}

/* LEFT PANEL - BRAND SIDE */
.brand-panel {
  flex: 1.1;
  /* background: linear-gradient(135deg, #0b1329 0%, #0f172a 100%); */
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%),
    url("../assets/auth_image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  /* padding: 56px; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

@media (max-width: 960px) {
  .brand-panel {
    display: none;
  }
}

.logo {
  display: flex;
  width: 200px;
  position: relative;
  z-index: 2;
  margin: 56px 0 0 56px;
}
.logo img {
  width: 100%;
}
.brand-hero-graphic {
  position: relative;
  z-index: 2;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-illustration-box {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 12px;
}

.hero-illustration-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.brand-copy {
  position: absolute;
  left: 0;
  top: 100px;
  z-index: 2;
  width: 100%;
  background-image: linear-gradient(to bottom, transparent, #000000);
  padding: 56px;
}

.brand-copy h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: #f8fafc;
}

.brand-copy p {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.brand-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 104, 249, 0.25) 0%,
    rgba(0, 104, 249, 0) 70%
  );
  top: -100px;
  right: -100px;
  z-index: 1;
}

/* RIGHT PANEL - FORM SIDE WITH GRID PATTERN */
.form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 340px;
  height: 340px;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.09) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.9;
  clip-path: circle(75% at 0 0);
  pointer-events: none;
}

.form-panel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 340px;
  height: 340px;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.09) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.9;
  clip-path: circle(75% at 100% 100%);
  pointer-events: none;
}

.form-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
}

.mobile-logo {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 32px;
}

@media (max-width: 960px) {
  .mobile-logo {
    display: block;
    width: 150px;
  }
  .mobile-logo img {
    width: 100%;
  }
}

/* SECTION TITLE TYPOGRAPHY */
h2.form-title {
  font-size: 35px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--text);
}

.form-sub {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.5;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.field .optional {
  color: var(--muted);
  font-weight: 500;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--blue);
}

.field input::placeholder {
  color: #94a3b8;
}

/* PASSWORD FIELD WITH EYE TOGGLE */
.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  transition: color 0.15s ease;
}

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

.password-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.logo-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logo-upload:hover {
  border-color: var(--blue);
  background: var(--blue-tint);
}

.logo-upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-upload-text strong {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 600;
}

.logo-upload-text span {
  color: var(--muted);
  font-size: 12px;
}

.logo-upload input[type="file"] {
  display: none;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 420px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
}

.forgot-link {
  color: var(--blue);
  font-weight: 600;
}

.forgot-link:hover {
  color: var(--blue-dark);
}

.btn-submit {
  width: 100%;
  padding: 14px 0;
  border-radius: 12px;
  border: none;
  background: var(--blue);
  color: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.switch-line {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}

.switch-line a {
  color: var(--blue);
  font-weight: 600;
}

/* FORGOT PASSWORD — 6-DIGIT CODE SQUARES */
.code-squares {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.code-input {
  width: 48px;
  height: 56px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  caret-color: var(--blue);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.code-input:focus {
  border-color: var(--blue);
}

.reset-divider {
  color: var(--muted);
  margin: 0 4px;
}

.switch-line a.is-disabled {
  color: var(--muted);
  pointer-events: none;
}

@media (max-width: 400px) {
  /* Six 48px squares + gaps overflow a 360px screen — shrink to fit */
  .code-squares {
    gap: 8px;
  }
  .code-input {
    width: 40px;
    height: 50px;
    font-size: 20px;
    border-radius: 10px;
  }
}

.panel {
  display: none;
}

.panel.active {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MULTI-STEP SIGNUP */
.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

.progress-track {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.progress-seg {
  flex: 1;
  height: 5px;
  border-radius: 100px;
  background: var(--border);
  overflow: hidden;
}

.progress-seg .fill {
  height: 100%;
  background: var(--blue);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-seg.done .fill {
  width: 100%;
}

.progress-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

.progress-label .step-current {
  color: var(--blue);
}

.btn-row {
  display: flex;
  gap: 12px;
}

.btn-back {
  flex: 0 0 auto;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-back:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-row .btn-submit {
  flex: 1;
}

/* ==========================================
         PREMIUM GLASSMORPHIC TOAST NOTIFICATIONS
         ========================================== */
.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  color: #ffffff;
  overflow: hidden;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Success Glow & Accent */
.toast.success {
  border-left: 3px solid #10b981;
}

.toast.success .toast-icon-bg {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Error Glow & Accent */
.toast.error {
  border-left: 3px solid #f43f5e;
}

.toast.error .toast-icon-bg {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Icon Container */
.toast-icon-bg {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.toast-body {
  flex: 1;
  padding-top: 2px;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #f8fafc;
  margin-bottom: 4px;
}

.toast-msg {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}

.toast-close {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  margin-left: 4px;
  transition: color 0.2s ease;
  line-height: 1;
}

.toast-close:hover {
  color: #f8fafc;
}

/* Progress bar timer */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.toast.success .toast-progress-fill {
  height: 100%;
  background: #10b981;
  animation: toastProgress 5s linear forwards;
}

.toast.error .toast-progress-fill {
  height: 100%;
  background: #f43f5e;
  animation: toastProgress 5s linear forwards;
}

.toast.leaving {
  animation: toastSlideOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* BUTTON LOADING STATE */
.btn-submit[disabled],
.btn-back[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* STANDALONE CARD LAYOUT (password reset page — no split brand panel) */
.solo-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: var(--bg);
}

.solo-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.solo-card .logo {
  color: var(--text);
  margin-bottom: 28px;
}

.solo-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  margin-bottom: 18px;
}

.solo-status.success {
  background: var(--green-bg);
  color: var(--green-text);
}

.solo-status.error {
  background: var(--red-bg);
  color: var(--red-text);
}

/* App-style chrome: scroll without a visible scrollbar. */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
}
*::-webkit-scrollbar {
  display: none; /* Chrome / Edge / Safari */
  width: 0;
  height: 0;
}
