/* ==========================================================================
   VANZDEMO — AUTH PAGES (LOGIN, REGISTER & RESET PASSWORD)
   Centered night-sky card with blue form controls
   ========================================================================== */

:root {
  --auth-bg: #0b0f19;
  --auth-panel-bg: #111726;
  --auth-card-border: rgba(255, 255, 255, 0.08);
  --auth-input-bg: #182032;
  --auth-input-border: rgba(255, 255, 255, 0.12);
  --auth-input-focus: #3b82f6;
  --auth-text: #f8fafc;
  --auth-text-muted: #94a3b8;
  --auth-primary: #1479e8;
  --auth-primary-hover: #0865ca;
  --auth-blue: #0284c7;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background: var(--auth-bg);
  font-family: var(--font-body);
  color: var(--auth-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── CENTERED AUTH CARD ── */
.auth-wrapper {
  width: min(1320px, calc(100% - 64px));
  min-height: min(760px, calc(100vh - 64px));
  margin: max(32px, calc((100vh - 760px) / 2)) auto;
  display: grid;
  grid-template-columns: 58% 42%;
  background: var(--auth-panel-bg);
  border: 1px solid rgba(145, 190, 255, 0.16);
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.48), 0 0 56px rgba(18, 95, 201, 0.13);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  padding: 40px 44px;
  background: #071632;
  min-height: 760px;
  isolation: isolate;
  border-right: 1px solid var(--auth-card-border);
}

.visual-bg-layer {
  position: absolute;
  inset: -7%;
  background: url("./assets/sky-night.jpg") center / cover no-repeat;
  z-index: -3;
  animation: cloud-pan 32s ease-in-out infinite alternate;
  will-change: transform;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: url("./assets/sky-night.jpg") center / cover no-repeat;
  filter: blur(13px);
  opacity: 0.26;
  mask-image: linear-gradient(to bottom, transparent 36%, #000 85%);
  z-index: -2;
  animation: cloud-depth 25s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cloud-pan {
  from { transform: translate3d(-1.5%, 0, 0) scale(1.06); }
  to { transform: translate3d(1.5%, -1.5%, 0) scale(1.12); }
}

@keyframes cloud-depth {
  from { transform: translate3d(2%, 0, 0) scale(1.08); }
  to { transform: translate3d(-3%, -2%, 0) scale(1.15); }
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 17, 40, 0.58), rgba(4, 17, 40, 0.09) 82%),
    linear-gradient(180deg, rgba(5, 15, 36, 0.48), transparent 30%, rgba(5, 15, 36, 0.35));
  pointer-events: none;
  z-index: -1;
}

.visual-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.visual-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.brand-symbol {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #269eff;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  letter-spacing: -0.15em;
  padding-right: 3px;
  transform: rotate(-6deg);
  box-shadow: 0 4px 16px rgba(38, 158, 255, 0.36);
}

.brand-symbol span { color: #bfeaff; }
.brand-dot { color: #5db9ff; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 28, 61, 0.3);
  border: 1px solid rgba(195, 226, 255, 0.34);
  backdrop-filter: blur(12px);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 99px;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.back-link:hover {
  background: rgba(37, 139, 237, 0.28);
  border-color: rgba(195, 226, 255, 0.65);
  transform: translateY(-2px);
}

.visual-message {
  position: relative;
  width: min(580px, 100%);
  margin-top: clamp(120px, 21vh, 220px);
  padding-left: 22px;
  border-left: 3px solid #51b7ff;
  animation: authFadeIn 0.7s both;
}

.visual-eyebrow {
  display: block;
  color: #a4dfff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  margin-bottom: 18px;
}

.visual-message h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  color: #fff;
  max-width: 550px;
  margin: 0 0 18px;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.visual-message p {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  color: #d3ecff;
  font-weight: 500;
}

/* ── RIGHT FORM PANEL ── */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  background: var(--auth-panel-bg);
  min-height: 760px;
  overflow-y: auto;
  position: relative;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
  margin: auto 0;
  padding: 16px 0;
}

.form-header {
  margin-bottom: 26px;
}

.form-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.04em;
}

.form-header p {
  margin: 0;
  font-size: 14px;
  color: var(--auth-text-muted);
  line-height: 1.5;
}

.form-header p a {
  color: #83c4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s;
}

.form-header p a:hover {
  color: #b4ddff;
}

/* ── FORM ELEMENTS ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field {
  width: 100%;
  height: 48px;
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-input-border);
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-field::placeholder {
  color: #64748b;
  font-size: 13.5px;
}

.input-field:focus {
  border-color: #3b82f6;
  background: #1e283d;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.toggle-password {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  display: grid;
  place-items: center;
  padding: 4px;
  font-size: 18px;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #ffffff;
}

/* Checkbox Row */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 6px;
  font-size: 13px;
  color: var(--auth-text-muted);
}

.custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #3b82f6;
  cursor: pointer;
  border-radius: 4px;
}

.custom-checkbox span a {
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.custom-checkbox span a:hover {
  color: #ffffff;
}

.forgot-link {
  color: #83c4ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #b4ddff;
  text-decoration: underline;
}

/* Primary Button */
.btn-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #289cff 0%, #0865ca 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(20, 121, 232, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  margin-top: 4px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 121, 232, 0.55);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Social Login Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
  padding: 0 14px;
}

/* Social Buttons */
.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-social {
  height: 46px;
  border-radius: 12px;
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-input-border);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-social:hover {
  background: #222d42;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.social-icon {
  width: 18px;
  height: 18px;
}

/* ── RESET PASSWORD SPECIAL ELEMENTS ── */
.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-text-muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s, transform 0.2s;
}

.auth-back-link:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.auth-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 121, 232, 0.2) 0%, rgba(56, 189, 248, 0.15) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #b4ddff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(20, 121, 232, 0.25);
}

.form-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--auth-text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.45;
  margin-top: 4px;
}

.form-security-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #38bdf8;
}

/* Reset Success State Card */
.reset-success-card {
  display: none;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  animation: authFadeIn 0.35s ease forwards;
}

.reset-success-card.active {
  display: block;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 2px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
}

.reset-success-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.reset-success-card p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 24px;
}

.reset-success-card strong {
  color: #38bdf8;
  word-break: break-all;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-resend {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  width: 100%;
}

.btn-resend:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-resend:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-return-login {
  background: linear-gradient(135deg, #289cff 0%, #0865ca 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(20, 121, 232, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-return-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(20, 121, 232, 0.5);
}

.support-footer-note {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--auth-text-muted);
}

.support-footer-note a {
  color: #83c4ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-footer-note a:hover {
  color: #b4ddff;
}

/* Toast Message */
.auth-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: #10b981;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.auth-toast.error {
  background: #ef4444;
}

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 1024px) {
  .auth-wrapper { grid-template-columns: 52% 48%; }
  .auth-visual { padding: 32px; }
  .auth-form-panel { padding: 36px 28px; }
  .visual-message h1 { font-size: clamp(42px, 5vw, 58px); }
}

@media (max-width: 900px) {
  .auth-wrapper {
    width: min(680px, calc(100% - 28px));
    grid-template-columns: 1fr;
    margin: 14px auto;
    min-height: 0;
    border-radius: 20px;
  }
  .auth-visual {
    min-height: 320px;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--auth-card-border);
  }
  .visual-message {
    margin-top: 68px;
    padding-left: 16px;
  }
  .visual-message h1 { font-size: clamp(36px, 7vw, 48px); margin-bottom: 8px; }
  .visual-message p { font-size: 17px; }
  .auth-form-panel { min-height: auto; padding: 36px 28px 44px; }
  .auth-form-container { max-width: 440px; padding: 0; }
}

@media (max-width: 480px) {
  .auth-visual { min-height: 270px; padding: 20px; }
  .visual-brand { font-size: 18px; }
  .back-link { font-size: 11px; padding: 7px 11px; }
  .visual-message { margin-top: 48px; }
  .visual-message h1 { font-size: 36px; }
  .visual-eyebrow { font-size: 9px; margin-bottom: 12px; }
  .auth-form-panel { padding: 28px 20px 38px; }
  .form-header h2 { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .social-buttons { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .visual-bg-layer, .auth-visual::before, .visual-message { animation: none; }
}
.auth-demo-notice{margin-top:15px!important;padding:11px 13px;border:1px solid #514968;border-radius:10px;color:#bfc0d1!important;font-size:12px!important;line-height:1.5}
.social-buttons{grid-template-columns:1fr}
