:root {
  --ink: #0b132b;
  --muted: #44506b;
  --accent: #ff6f3c;
  --accent-2: #2c9ad1;
  --glass: rgba(10, 20, 40, 0.7);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 12px 40px rgba(8, 20, 40, 0.18);
}

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  color: var(--ink);
}

.bg-surface {
  background: #f3f6fb;
  min-height: 100vh;
  position: relative;
}

.app-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 10%, rgba(255, 111, 60, 0.18), transparent 40%),
    radial-gradient(circle at 85% 5%, rgba(44, 154, 209, 0.2), transparent 45%),
    radial-gradient(circle at 70% 85%, rgba(34, 68, 142, 0.18), transparent 40%);
  z-index: 0;
}

main,
nav {
  position: relative;
  z-index: 1;
}

.glass-nav {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.card-luxe {
  background: var(--card);
  border: none;
  box-shadow: var(--shadow);
  border-radius: 18px;
}

.badge-soft {
  background: rgba(255, 111, 60, 0.15);
  color: #b5441b;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}

.btn-accent {
  background: var(--accent);
  border: none;
  color: white;
  box-shadow: 0 10px 20px rgba(255, 111, 60, 0.25);
}

.btn-accent:hover {
  background: #ff5c24;
  color: white;
}

.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.stat-card {
  padding: 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f6fbff);
  box-shadow: 0 6px 20px rgba(11, 19, 43, 0.08);
}

.table thead th {
  font-weight: 600;
}

.login-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.login-hero h1 {
  font-weight: 800;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.login-hero .subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.9;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(44, 154, 209, 0.12);
  color: #1f4b6b;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.auth-tabs-wrap {
  position: relative;
  border-bottom: 1px solid rgba(188, 198, 214, 0.9);
}

.auth-tabs {
  border-bottom: 0;
  gap: 0;
  padding: 0;
  background: transparent;
  margin-bottom: -1px;
}

.auth-tabs .nav-item {
  margin-bottom: 0;
  flex: 1 1 0;
}

.auth-tabs .nav-link {
  position: relative;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-weight: 700;
  padding: 0.95rem 1rem 0.85rem;
  background: transparent;
  transition: color 0.2s ease, border-color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.auth-tabs .nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
}

.auth-tabs .nav-link.active,
.auth-tabs .nav-item.show .nav-link {
  color: var(--ink);
  border-bottom-color: var(--accent-2);
  background: linear-gradient(180deg, rgba(44, 154, 209, 0.08), rgba(44, 154, 209, 0.02));
}

.auth-shell {
  overflow: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.auth-shell__inner {
  position: relative;
}

.auth-stage {
  --auth-swipe-offset: 0px;
  animation: auth-stage-in 0.28s ease both;
  transform: translate3d(var(--auth-swipe-offset), 0, 0);
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform;
}

.auth-title {
  margin-bottom: 0.35rem;
}

.auth-title-note {
  line-height: 1.9;
}

.auth-form-stack {
  display: grid;
  gap: 1rem;
}

.auth-section-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92));
  border: 1px solid rgba(214, 223, 235, 0.95);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-section-card--compact {
  padding: 1rem;
}

.auth-section-card__head {
  margin-bottom: 0.9rem;
}

.auth-section-card__head h5 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 800;
}

.auth-section-card__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.auth-field label {
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #1b2945;
}

.auth-control,
.auth-select {
  min-height: 3.15rem;
  border-radius: 14px;
  border: 1px solid rgba(187, 198, 214, 0.92);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.auth-control:focus,
.auth-select:focus {
  border-color: rgba(44, 154, 209, 0.6);
  box-shadow: 0 0 0 0.22rem rgba(44, 154, 209, 0.12);
}

textarea.auth-control {
  min-height: 7.5rem;
}

.auth-field .form-text {
  margin-top: 0.45rem;
  color: #60708a;
  line-height: 1.7;
}

.auth-field--error .auth-control,
.auth-field--error .auth-select {
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 0 0 0.16rem rgba(220, 38, 38, 0.08);
}

.auth-submit-btn {
  min-height: 3.25rem;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
}

.auth-switch-note {
  line-height: 1.9;
}

.auth-switch-note a {
  font-weight: 700;
  text-decoration: none;
}

.auth-page--switching .auth-shell {
  opacity: 0;
  transform: translateY(4px);
}

.auth-shell--dragging {
  touch-action: pan-y;
}

.auth-shell--dragging .auth-stage {
  transition: none;
}

.auth-shell--snapback .auth-stage {
  transition: transform 0.22s ease;
}

@keyframes auth-stage-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 575.98px) {
  .login-hero {
    margin-bottom: 1.35rem;
  }

  .login-hero h1 {
    font-size: 1.35rem;
    line-height: 1.7;
  }

  .login-hero .subtitle {
    font-size: 0.86rem;
  }

  .auth-tabs-wrap {
    margin-inline: -0.15rem;
  }

  .auth-tabs .nav-link {
    padding: 0.88rem 0.5rem 0.78rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .auth-section-card {
    padding: 0.9rem;
    border-radius: 16px;
  }

  .auth-control,
  .auth-select {
    min-height: 3rem;
    font-size: 0.97rem;
  }

  .auth-shell {
    border-radius: 20px;
  }
}

.upload-box {
  width: 120px;
  height: 120px;
  border: 2px dashed #d2d7e1;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-box:hover {
  border-color: #9aa5b5;
  background: #f8fafc;
  transform: translateY(-1px);
}

.upload-box .upload-icon {
  width: 34px;
  height: 34px;
  color: #9aa5b5;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.upload-box .upload-plus {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.upload-preview {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-album {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.media-album-item {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dbe2ee;
  background: #fff;
  display: block;
  box-shadow: 0 6px 16px rgba(8, 20, 40, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-album-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(8, 20, 40, 0.14);
}

.media-album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-plus {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: rgba(44, 154, 209, 0.15);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(44, 154, 209, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-plus:hover {
  background: rgba(44, 154, 209, 0.25);
  transform: translateY(-1px);
}

.tag-pill {
  background: rgba(44, 154, 209, 0.12);
  color: #1f4b6b;
  border: 1px solid rgba(44, 154, 209, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.tag-remove {
  border: none;
  background: #ef4444;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.alert-soft {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
}

.location-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92));
  border: 1px solid rgba(189, 202, 220, 0.6);
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.location-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.location-panel__subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.location-form-shell {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 224, 235, 0.95);
  border-radius: 16px;
  padding: 1rem;
}

.location-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.location-summary-item {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 224, 235, 0.95);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 86px;
}

.location-summary-item--wide {
  grid-column: 1 / -1;
}

.location-summary-item__label {
  color: var(--muted);
  font-size: 0.82rem;
}

.location-summary-item__value {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.8;
}

@media (max-width: 767.98px) {
  .location-panel__head {
    flex-direction: column;
  }
}

.action-row {
  align-items: center;
  gap: 0.45rem;
}

.action-btn {
  min-height: 30px;
  min-width: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-action-spacer {
  margin-top: auto;
  padding-top: 0.35rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 0.65rem;
  border-radius: 10px;
  line-height: 1;
}

.code-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2c9ad1 0%, #4d5bf9 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(44, 154, 209, 0.25);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.code-badge strong {
  font-size: 1rem;
}

.section-title svg {
  color: #6b7a90;
}

.chart-box {
  min-height: 260px;
  position: relative;
}

.ticket-card {
  border: 1px solid rgba(11, 19, 43, 0.06);
}

.status-badge,
.priority-badge {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

.status-open {
  background: rgba(14, 165, 233, 0.15);
  color: #0369a1;
}

.status-answered {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.status-closed {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
}

.priority-low {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
}

.priority-medium {
  background: rgba(14, 165, 233, 0.12);
  color: #075985;
}

.priority-high {
  background: rgba(249, 115, 22, 0.15);
  color: #9a3412;
}

.priority-urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.ticket-thread {
  display: grid;
  gap: 1rem;
}

.ticket-message {
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 24px rgba(8, 20, 40, 0.06);
  border: 1px solid rgba(11, 19, 43, 0.06);
}

.ticket-message--admin {
  background: rgba(44, 154, 209, 0.08);
  border-color: rgba(44, 154, 209, 0.2);
}

.ticket-message--user {
  background: rgba(255, 255, 255, 0.9);
}

.ticket-message__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.ticket-message__body {
  color: var(--ink);
  line-height: 1.9;
}

.ticket-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ticket-attachment {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(44, 154, 209, 0.12);
  color: #1f4b6b;
  font-size: 0.85rem;
  text-decoration: none;
}

.ticket-attachment:hover {
  background: rgba(44, 154, 209, 0.2);
  color: #0f2d42;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 28, 0.72);
  backdrop-filter: blur(2px);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 900px);
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 0 20px 50px rgba(8, 20, 40, 0.4);
}

.lightbox__content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
}

.lightbox__close {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__prev {
  right: 8px;
}

.lightbox__next {
  left: 8px;
}

.lightbox__nav.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.section-block {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(11, 19, 43, 0.08);
}

.section-block:last-of-type {
  border-bottom: none;
}

.approval-result-card {
  border: 1px solid rgba(34, 197, 94, 0.16);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.05) 0%, rgba(255, 255, 255, 0.96) 42%),
    #ffffff;
}

.approval-result-card__textarea {
  min-height: 12rem;
  line-height: 2;
  background: rgba(248, 250, 252, 0.92);
  border: 1px dashed rgba(44, 154, 209, 0.28);
  resize: vertical;
}


.auth-page.bg-surface {
  background: #f3f6fb;
  overflow-x: hidden;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(243, 246, 251, 0.92));
  z-index: 0;
  pointer-events: none;
}

.auth-page .app-gradient--auth {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(44, 154, 209, 0.16), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(56, 109, 242, 0.12), transparent 28%),
    radial-gradient(circle at 72% 88%, rgba(25, 118, 210, 0.1), transparent 32%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.auth-frame.card-luxe {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(179, 197, 224, 0.52);
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(30, 59, 104, 0.16);
  backdrop-filter: blur(14px);
}

.auth-page .auth-shell {
  overflow: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-panel {
  position: relative;
  z-index: 2;
  padding: clamp(1rem, 2.4vw, 2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.96));
  border-left: 1px solid rgba(197, 211, 234, 0.58);
}

.auth-panel__header {
  margin-bottom: 1.1rem;
}

.auth-page .login-badge {
  margin-bottom: 1rem;
  background: rgba(44, 154, 209, 0.1);
  color: #1f4b6b;
  border: 1px solid rgba(44, 154, 209, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.auth-page .auth-tabs-wrap {
  position: relative;
  border-bottom: 0;
  background: rgba(237, 244, 252, 0.95);
  border-radius: 20px 20px 0 0;
  padding: 0.38rem 0.38rem 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.auth-page .auth-tabs {
  gap: 0.35rem;
  justify-content: flex-start;
  margin-bottom: 0;
}

.auth-page .auth-tabs .nav-item {
  flex: 1 1 0;
}

.auth-page .auth-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 14px 14px 0 0;
  color: #607189;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.82rem 1rem 0.74rem;
  font-size: 0.96rem;
  font-weight: 700;
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.auth-page .auth-tabs .nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.auth-page .auth-tabs .nav-link.active,
.auth-page .auth-tabs .nav-item.show .nav-link {
  color: var(--ink);
  background: #ffffff;
  border-bottom-color: var(--accent-2);
  box-shadow: 0 14px 30px rgba(44, 154, 209, 0.12);
}

.auth-page .auth-stage {
  --auth-swipe-offset: 0px;
  animation: auth-stage-in 0.3s ease both;
  transform: translate3d(var(--auth-swipe-offset), 0, 0);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.auth-copy {
  margin-bottom: 1rem;
}

.auth-page .auth-title {
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  margin-bottom: 0.35rem;
}

.auth-page .auth-title-note {
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 0;
}

.auth-page .auth-form-stack {
  display: grid;
  gap: 1rem;
}

.auth-page .auth-section-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.96));
  border: 1px solid rgba(205, 219, 239, 0.75);
  border-radius: 22px;
  padding: 1.05rem;
  box-shadow: 0 12px 28px rgba(28, 57, 104, 0.06);
  backdrop-filter: blur(6px);
}

.auth-page .auth-section-card--compact {
  padding: 1.05rem;
}

.auth-page .auth-section-card__head {
  margin-bottom: 0.85rem;
}

.auth-page .auth-section-card__head h5 {
  color: var(--ink);
  font-size: 1rem;
}

.auth-page .auth-section-card__head p {
  color: var(--muted);
}

.auth-page .auth-field label {
  color: var(--ink);
  font-weight: 700;
}

.auth-page .auth-control,
.auth-page .auth-select {
  min-height: 3.15rem;
  border-radius: 16px;
  border: 1px solid rgba(196, 211, 232, 0.95);
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(55, 88, 138, 0.04);
}

.auth-page .auth-control::placeholder {
  color: #95a3b8;
}

.auth-page .auth-control:focus,
.auth-page .auth-select:focus {
  border-color: rgba(44, 154, 209, 0.62);
  box-shadow: 0 0 0 0.24rem rgba(44, 154, 209, 0.14);
  background: #ffffff;
  color: var(--ink);
}

.auth-page textarea.auth-control {
  min-height: 7.5rem;
}

.auth-page .auth-field .form-text {
  color: #6a7a90;
}

.auth-page .auth-field .invalid-feedback,
.auth-page .auth-field .text-danger {
  color: #c0392b;
}

.auth-page .auth-field--error .auth-control,
.auth-page .auth-field--error .auth-select {
  border-color: rgba(210, 84, 63, 0.45);
  box-shadow: 0 0 0 0.18rem rgba(210, 84, 63, 0.08);
}

.auth-page .auth-submit-btn {
  min-height: 3.3rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(90deg, #2c9ad1 0%, #3c82da 100%);
  box-shadow: 0 18px 34px rgba(44, 154, 209, 0.2);
}

.auth-page .auth-submit-btn:hover {
  background: linear-gradient(90deg, #228bbf 0%, #336fbe 100%);
}

.auth-page .auth-switch-note {
  color: #6b7c93;
}

.auth-page .auth-switch-note a {
  color: var(--accent-2);
  font-weight: 700;
}

.auth-page .alert {
  border-radius: 18px;
  border: 0;
}

.auth-visual {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(236, 244, 252, 0.84)),
    url("../img/auth-imam-reza-shrine-optimized.jpg") center center / cover no-repeat;
}

.auth-visual__shade,
.auth-visual__pattern {
  position: absolute;
  inset: 0;
}

.auth-visual__shade {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(232, 241, 252, 0.72));
}

.auth-visual__pattern {
  opacity: 0.18;
  background:
    linear-gradient(135deg, rgba(44, 154, 209, 0.14) 0 16%, transparent 16% 100%),
    linear-gradient(45deg, rgba(56, 109, 242, 0.08) 0 14%, transparent 14% 100%),
    linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, 0.42) 58% 66%, transparent 66% 100%);
  background-size: 240px 240px, 220px 220px, 100% 100%;
  mix-blend-mode: normal;
}

.auth-visual__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.8rem);
  color: var(--ink);
}

.auth-visual__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(184, 203, 228, 0.72);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.auth-visual h1 {
  font-size: clamp(1.9rem, 4vw, 3.45rem);
  line-height: 1.35;
  font-weight: 800;
  max-width: 11ch;
  margin-bottom: 1rem;
  text-shadow: 0 10px 24px rgba(255, 255, 255, 0.35);
}

.auth-visual p {
  max-width: 30rem;
  color: rgba(11, 19, 43, 0.82);
  line-height: 2;
  margin-bottom: 0;
}

.auth-visual__feature {
  display: grid;
  gap: 0.4rem;
  max-width: 25rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(190, 208, 231, 0.74);
  box-shadow: 0 20px 40px rgba(44, 154, 209, 0.1);
  backdrop-filter: blur(10px);
}

.auth-visual__feature strong {
  font-size: 1.05rem;
}

.auth-visual__feature span {
  color: rgba(11, 19, 43, 0.78);
  line-height: 1.85;
}

.auth-visual__caption {
  color: rgba(68, 80, 107, 0.86);
  font-size: 0.84rem;
  margin-top: 1rem;
}

.auth-page--switching .auth-shell {
  opacity: 0;
  transform: translateY(8px) scale(0.995);
}

.auth-page .auth-shell--dragging {
  touch-action: pan-y;
}

.auth-page .auth-shell--dragging .auth-stage {
  transition: none;
}

.auth-page .auth-shell--snapback .auth-stage {
  transition: transform 0.22s ease;
}

@media (max-width: 991.98px) {
  .auth-frame.card-luxe {
    grid-template-columns: 1fr;
    width: min(100%, 920px);
    border-radius: 28px;
  }

  .auth-panel {
    order: 2;
    border-left: 0;
  }

  .auth-visual {
    order: 1;
    min-height: 240px;
  }

  .auth-visual__content {
    padding: 1.25rem;
  }

  .auth-visual h1 {
    max-width: 100%;
    font-size: clamp(1.5rem, 5vw, 2.35rem);
    margin-bottom: 0.75rem;
  }

  .auth-visual p {
    max-width: 100%;
    font-size: 0.92rem;
  }

  .auth-visual__feature {
    margin-top: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .auth-layout {
    padding-inline: 0.35rem;
  }

  .auth-frame.card-luxe {
    border-radius: 24px;
  }

  .auth-panel {
    padding: 0.9rem;
  }

  .auth-page .auth-tabs-wrap {
    padding: 0.28rem 0.28rem 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .auth-page .auth-tabs-wrap::-webkit-scrollbar {
    display: none;
  }

  .auth-page .auth-tabs {
    width: 100%;
    min-width: 100%;
  }

  .auth-page .auth-tabs .nav-link {
    padding: 0.78rem 0.5rem 0.7rem;
    font-size: 0.92rem;
  }

  .auth-page .auth-section-card {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .auth-page .auth-control,
  .auth-page .auth-select {
    min-height: 3rem;
    font-size: 0.96rem;
  }

  .auth-visual {
    min-height: 220px;
  }

  .auth-visual__eyebrow {
    font-size: 0.76rem;
    margin-bottom: 0.75rem;
  }

  .auth-visual__caption {
    font-size: 0.76rem;
  }
}
