:root {
  --wd-bg-start: #f5f5f5;
  --wd-bg-end: #ece7e2;
  --wd-surface: rgba(255, 255, 255, 0.9);
  --wd-surface-strong: #ffffff;
  --wd-border: #dbcdbf;
  --wd-border-strong: #c8b29f;
  --wd-text: #1a1a1a;
  --wd-muted: #5f4f44;
  --wd-sidebar-1: #1a1a1a;
  --wd-sidebar-2: #22201e;
  --wd-sidebar-border: #3d2b1f;
  --wd-nav-text: #f5f5f5;
  --wd-nav-muted: #c6b09d;
  --wd-brand-1: #e36d1d;
  --wd-brand-2: #efb08a;
  --wd-accent: #3d2b1f;
  --wd-danger: #c24141;
  --wd-warning: #d08f16;
  --wd-success: #198f57;
  --wd-shadow-soft: 0 16px 45px rgba(28, 20, 14, 0.12);
  --wd-shadow-card: 0 20px 40px rgba(28, 20, 14, 0.1);
  --wd-focus-ring: 0 0 0 0.2rem rgba(227, 109, 29, 0.25);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #bda795 transparent;
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #cbb6a5, #b79f8b);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

body.wd-app {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background: radial-gradient(circle at 16% 10%, rgba(227, 109, 29, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(61, 43, 31, 0.16), transparent 36%),
    linear-gradient(180deg, var(--wd-bg-start) 0%, var(--wd-bg-end) 100%);
  color: var(--wd-text);
  font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.55;
  font-size: 16px;
}

body.wd-app::before,
body.wd-app::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.45;
}

body.wd-app::before {
  width: 380px;
  height: 380px;
  top: -110px;
  right: -110px;
  background: rgba(227, 109, 29, 0.32);
}

body.wd-app::after {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -80px;
  background: rgba(61, 43, 31, 0.24);
}

.wd-layout {
  position: relative;
}

.wd-topbar {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--wd-border);
  box-shadow: 0 6px 18px rgba(61, 43, 31, 0.12);
}

.wd-topbar .navbar-brand {
  color: #1a1a1a;
  font-weight: 800;
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: 0.01em;
}

.wd-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 800;
  background: linear-gradient(140deg, var(--wd-brand-1), var(--wd-brand-2));
  box-shadow: 0 8px 18px rgba(227, 109, 29, 0.35);
}

.wd-topbar-user {
  color: var(--wd-muted);
  font-weight: 600;
}

.wd-topbar-user small {
  color: #8f7664;
}

.wd-shell {
  min-height: calc(100vh - 68px);
}

.wd-sidebar {
  min-height: calc(100vh - 68px);
  background: linear-gradient(175deg, var(--wd-sidebar-1) 0%, var(--wd-sidebar-2) 100%);
  border-right: 1px solid var(--wd-sidebar-border);
  position: relative;
  overflow: hidden;
}

/* Tailwind also defines a `.collapse` utility (visibility: collapse).
   This keeps Bootstrap sidebar collapse behavior working and visible. */
#wdSidebar.collapse {
  visibility: visible;
}

.wd-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at -10% -8%, rgba(227, 109, 29, 0.28), transparent 34%),
    radial-gradient(circle at 110% 108%, rgba(239, 176, 138, 0.18), transparent 36%);
  pointer-events: none;
}

.wd-sidebar nav {
  position: relative;
  z-index: 1;
}

.wd-content {
  min-height: calc(100vh - 68px);
}

.wd-page-shell {
  max-width: 1560px;
  margin: 0 auto;
}

.wd-modern-shell {
  max-width: 1520px;
  margin: 0 auto;
}

.wd-modern-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none;
}

.wd-modern-card .card-body {
  padding: 1.2rem 1.25rem;
}

.wd-modern-kicker {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.wd-modern-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  line-height: 1.15;
  color: #0f172a;
  font-weight: 800;
}

.wd-modern-subtitle {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 1.02rem;
}

.wd-modern-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wd-modern-table-wrap {
  border-radius: 0.86rem;
  overflow: hidden;
}

.wd-modern-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: #f8fafc;
  --bs-table-hover-bg: #f1f5f9;
  margin-bottom: 0;
}

.wd-modern-table > :not(caption) > * > * {
  border-bottom: 1px solid #e2e8f0;
  border-right: 0;
  border-left: 0;
  padding: 0.94rem 0.86rem;
  vertical-align: middle;
  font-size: 0.98rem;
}

.wd-modern-table thead th,
.wd-modern-table.table-light th {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.wd-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.wd-status-neutral {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
}

.wd-status-warning {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.wd-status-success {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.wd-status-danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.wd-form-section {
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
  padding-top: 1rem;
}

.wd-user {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  margin: 0 0.78rem 1rem;
  padding: 0.72rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.wd-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--wd-brand-1), #c95f17);
  box-shadow: 0 8px 16px rgba(242, 124, 61, 0.35);
}

.wd-user-name {
  color: #f2f7fd;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15rem;
}

.wd-user-role {
  color: var(--wd-nav-muted);
  font-size: 0.8rem;
}

.wd-nav-item {
  color: var(--wd-nav-text) !important;
  border-radius: 0.8rem;
  padding: 0.66rem 0.86rem;
  margin: 0 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.18s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.wd-nav-item i {
  font-size: 0.95rem;
}

.wd-nav-item:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.11);
}

.wd-nav-item.active {
  color: #fff !important;
  background: linear-gradient(110deg, rgba(227, 109, 29, 0.95) 0%, rgba(201, 95, 23, 0.95) 100%);
  box-shadow: 0 12px 25px rgba(227, 109, 29, 0.35);
}

.wd-nav-group {
  margin: 0.3rem 0.5rem 0.45rem;
}

.wd-nav-group > summary {
  list-style: none;
  cursor: pointer;
  color: #bfa38f;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 0.44rem 0.42rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wd-nav-group > summary::-webkit-details-marker {
  display: none;
}

.wd-nav-group > summary::after {
  content: "▾";
  font-size: 0.74rem;
  color: #a58d78;
  transition: transform 0.17s ease;
}

.wd-nav-group:not([open]) > summary::after {
  transform: rotate(-90deg);
}

.wd-nav-group > summary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #dbc3b0;
}

.wd-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.12rem 0 0.35rem;
}

.wd-submenu-link {
  color: var(--wd-nav-text) !important;
  border-radius: 0.7rem;
  padding: 0.5rem 0.78rem;
  margin: 0 0.22rem;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.18s ease;
  text-decoration: none;
  display: block;
}

.wd-submenu-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.wd-submenu-link.active {
  color: #fff !important;
  background: rgba(227, 109, 29, 0.25);
  border: 1px solid rgba(227, 109, 29, 0.6);
  font-weight: 700;
}

.wd-submenu-label {
  color: #c6b09d;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.35rem 0.35rem 0.2rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: #1a1a1a;
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.01em;
}

.card {
  border: 1px solid var(--wd-border) !important;
  border-radius: 1rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)) !important;
  box-shadow: var(--wd-shadow-card) !important;
  backdrop-filter: blur(6px);
}

.card-body {
  padding: 1.1rem 1.15rem;
}

.table-responsive {
  border-radius: 0.9rem;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(205, 188, 171, 0.25);
  --bs-table-hover-bg: rgba(205, 188, 171, 0.4);
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  border-bottom: 1px solid #e1d5ca;
  padding: 0.88rem 0.84rem;
  vertical-align: middle;
}

.table thead th,
.table-light th {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a5445;
  background: #f2ebe5 !important;
  border-bottom: 1px solid #ddcec0 !important;
}

.list-group-item {
  border-color: #ddcec0;
  background: transparent;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #3d2b1f;
}

.form-text {
  color: #816958;
}

.form-control,
.form-select {
  border-color: var(--wd-border-strong);
  border-radius: 0.75rem;
  min-height: 42px;
  font-size: 0.96rem;
  color: #2c211a;
  background-color: #faf7f4;
  box-shadow: inset 0 1px 1px rgba(61, 43, 31, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control::placeholder {
  color: #9a8474;
}

textarea.form-control {
  min-height: 108px;
}

.form-control:hover,
.form-select:hover {
  border-color: #b99f89;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--wd-brand-1);
  background-color: #fff;
  box-shadow: var(--wd-focus-ring);
}

.form-check-input {
  border-color: #b79f8a;
}

.form-check-input:checked {
  background-color: var(--wd-brand-1);
  border-color: var(--wd-brand-1);
}

.form-check-input:focus {
  box-shadow: var(--wd-focus-ring);
}

.is-invalid,
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #d15252;
  box-shadow: 0 0 0 0.2rem rgba(209, 82, 82, 0.18);
}

.invalid-feedback,
.text-danger.small,
.text-danger.small.mt-1 {
  color: #b63030 !important;
  font-weight: 600;
}

.btn {
  border-radius: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.54rem 0.92rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  box-shadow: var(--wd-focus-ring);
}

.btn-primary,
.btn-success {
  border: 0;
  color: #fff;
  background: linear-gradient(120deg, var(--wd-brand-1) 0%, var(--wd-brand-2) 100%);
  box-shadow: 0 10px 20px rgba(227, 109, 29, 0.28);
}

.btn-primary:hover,
.btn-success:hover {
  color: #fff;
  filter: brightness(1.04);
}

.btn-outline-primary {
  border-color: #e36d1d;
  color: #8b4518;
  background: rgba(227, 109, 29, 0.08);
}

.btn-outline-primary:hover {
  background: rgba(227, 109, 29, 0.16);
  border-color: #cd5f18;
  color: #733711;
}

.btn-outline-secondary {
  border-color: #bca592;
  color: #4e3b30;
  background: rgba(205, 188, 171, 0.3);
}

.btn-outline-secondary:hover {
  border-color: #ad927d;
  background: rgba(205, 188, 171, 0.48);
  color: #3d2b1f;
}

.btn-outline-dark {
  border-color: #3d2b1f;
  color: #2f2017;
  background: rgba(61, 43, 31, 0.08);
}

.btn-outline-dark:hover {
  background: rgba(61, 43, 31, 0.18);
  color: #1a1a1a;
}

.btn-outline-success {
  border-color: #3fa78a;
  color: #13684f;
  background: rgba(63, 167, 138, 0.1);
}

.btn-outline-success:hover {
  background: rgba(63, 167, 138, 0.2);
  color: #0d5842;
}

.btn-outline-warning {
  border-color: #ddad48;
  color: #8d5b00;
  background: rgba(221, 173, 72, 0.13);
}

.btn-outline-warning:hover {
  background: rgba(221, 173, 72, 0.24);
}

.btn-outline-danger {
  border-color: #d56e6e;
  color: #9e3232;
  background: rgba(213, 110, 110, 0.08);
}

.btn-outline-danger:hover {
  background: rgba(213, 110, 110, 0.18);
  color: #8a2424;
}

.btn-sm {
  border-radius: 0.62rem;
  font-size: 0.83rem;
  padding: 0.38rem 0.66rem;
}

.badge {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.alert {
  border: 1px solid transparent;
  border-radius: 0.88rem;
  font-weight: 600;
}

.alert-danger {
  border-color: #f3b8b8;
  background: #fff4f4;
  color: #8f2a2a;
}

.alert-info {
  border-color: #b6d8ed;
  background: #eef8ff;
  color: #1d5f86;
}

.alert-success {
  border-color: #b5e5ce;
  background: #f0fbf5;
  color: #166543;
}

.alert-warning {
  border-color: #f3dca3;
  background: #fff9ec;
  color: #83560a;
}

.wd-required {
  color: #c23b3b;
  font-weight: 800;
  margin-left: 0.15rem;
}

.wd-required-note {
  margin-bottom: 1rem;
  padding: 0.65rem 0.78rem;
  border: 1px dashed #ceb9a9;
  border-radius: 0.75rem;
  background: #faf4ef;
  color: #5c4435;
  font-size: 0.87rem;
  font-weight: 600;
}

.wd-toast-stack {
  position: fixed;
  top: 82px;
  right: 18px;
  z-index: 2100;
  display: grid;
  gap: 0.7rem;
  width: min(92vw, 360px);
}

.wd-toast {
  border-radius: 0.92rem;
  border: 1px solid;
  box-shadow: var(--wd-shadow-soft);
  background: #fff;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.66rem;
  align-items: start;
  padding: 0.68rem 0.76rem;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wd-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.wd-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.87rem;
}

.wd-toast-text {
  font-size: 0.9rem;
  color: #2d2119;
  font-weight: 600;
}

.wd-toast-close {
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 0.55rem;
  background: transparent;
  color: #8a7261;
  font-size: 0.95rem;
  line-height: 1;
}

.wd-toast-close:hover {
  background: rgba(138, 114, 97, 0.14);
}

.wd-toast--success {
  border-color: #9ed9bc;
}

.wd-toast--success .wd-toast-icon {
  background: linear-gradient(140deg, #1f9b67, #20b477);
}

.wd-toast--error {
  border-color: #e6abab;
}

.wd-toast--error .wd-toast-icon {
  background: linear-gradient(140deg, #c84343, #da5f5f);
}

.wd-toast--warning {
  border-color: #f1cf8f;
}

.wd-toast--warning .wd-toast-icon {
  background: linear-gradient(140deg, #c68a16, #e4a71c);
}

.wd-toast--info {
  border-color: #cdb7a6;
}

.wd-toast--info .wd-toast-icon {
  background: linear-gradient(140deg, #3d2b1f, #5a4130);
}

.wd-progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  z-index: 2500;
  opacity: 0;
  background: linear-gradient(90deg, var(--wd-brand-1), var(--wd-brand-2), var(--wd-accent));
  box-shadow: 0 0 12px rgba(227, 109, 29, 0.45);
  transition: width 0.28s ease, opacity 0.18s ease;
}

.wd-progress-bar.is-visible {
  opacity: 1;
  width: 42%;
}

.wd-progress-bar.is-loading {
  width: 88%;
}

.wd-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  background: rgba(26, 26, 26, 0.32);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wd-loading-panel {
  min-width: 240px;
  max-width: 92vw;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px rgba(26, 26, 26, 0.24);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.wd-loader {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(227, 109, 29, 0.22);
  border-top-color: var(--wd-brand-1);
  animation: wd-spin 0.9s linear infinite;
}

.wd-loading-text {
  color: #4d3a2c;
  font-weight: 700;
  margin: 0;
}

body.wd-loading .wd-loading-overlay {
  display: flex;
}

.wd-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  background: rgba(26, 26, 26, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wd-confirm-modal.is-open {
  display: flex;
}

.wd-confirm-dialog {
  width: min(96vw, 430px);
  border-radius: 1rem;
  border: 1px solid #d5c4b7;
  background: linear-gradient(180deg, #ffffff, #faf4ef);
  box-shadow: 0 24px 48px rgba(26, 26, 26, 0.28);
  padding: 1.1rem 1.2rem;
}

.wd-confirm-title {
  margin: 0;
  color: #3d2b1f;
  font-size: 1.1rem;
  font-weight: 800;
}

.wd-confirm-text {
  margin: 0.7rem 0 0;
  color: #5f4a3b;
  font-weight: 600;
}

.wd-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

@keyframes wd-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 991.98px) {
  .wd-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--wd-sidebar-border);
  }

  .wd-shell {
    min-height: calc(100vh - 62px);
  }

  .wd-content {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .card-body {
    padding: 0.9rem;
  }

  .wd-toast-stack {
    right: 10px;
    left: 10px;
    width: auto;
  }

  .wd-topbar .navbar-brand {
    font-size: 1rem;
  }
}

body.wd-app.wd-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(227, 109, 29, 0.22), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(61, 43, 31, 0.16), transparent 30%),
    linear-gradient(135deg, #f6efe8 0%, #efe5db 42%, #f9f6f2 100%);
}

body.wd-app.wd-auth-page::before {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -150px;
  background: rgba(227, 109, 29, 0.28);
}

body.wd-app.wd-auth-page::after {
  width: 420px;
  height: 420px;
  left: -130px;
  bottom: -110px;
  background: rgba(61, 43, 31, 0.18);
}

.wd-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(1.25rem, 2.2vw, 2rem);
}

.wd-auth-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 430px);
  gap: 1.5rem;
  align-items: stretch;
}

.wd-auth-brand-panel,
.wd-auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0 28px 70px rgba(49, 32, 18, 0.16);
}

.wd-auth-brand-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 680px;
  padding: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 176, 138, 0.28), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(227, 109, 29, 0.2), transparent 30%),
    linear-gradient(150deg, #38261c 0%, #261811 50%, #16100c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wd-auth-brand-panel::before,
.wd-auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.wd-auth-brand-panel::before {
  width: 220px;
  height: 220px;
  right: -55px;
  bottom: -70px;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(227, 109, 29, 0.9), rgba(239, 176, 138, 0.35));
  transform: rotate(14deg);
  opacity: 0.8;
}

.wd-auth-brand-panel::after {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 85%);
}

.wd-auth-logo-badge,
.wd-auth-kicker,
.wd-auth-title,
.wd-auth-subtitle,
.wd-auth-highlights {
  position: relative;
  z-index: 1;
}

.wd-auth-logo-badge {
  width: fit-content;
  padding: 1rem 1.2rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.2);
}

.wd-auth-logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
}

.wd-auth-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wd-auth-title {
  margin: 0;
  max-width: 12ch;
  color: #fff6ef;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.wd-auth-subtitle {
  max-width: 38rem;
  margin: 0;
  color: rgba(255, 244, 236, 0.82);
  font-size: 1.03rem;
}

.wd-auth-highlights {
  display: grid;
  gap: 0.9rem;
  margin-top: auto;
}

.wd-auth-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.wd-auth-highlight i {
  font-size: 1.1rem;
  color: #ffb27d;
}

.wd-auth-highlight strong,
.wd-auth-highlight span {
  display: block;
}

.wd-auth-highlight strong {
  color: #fff8f3;
  font-size: 0.97rem;
}

.wd-auth-highlight span {
  margin-top: 0.16rem;
  color: rgba(255, 244, 236, 0.76);
  font-size: 0.93rem;
}

.wd-auth-card {
  padding: clamp(1.55rem, 3vw, 2.15rem);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(215, 191, 174, 0.86);
  backdrop-filter: blur(22px);
}

.wd-auth-card::before {
  content: "";
  position: absolute;
  top: -55px;
  right: -55px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 109, 29, 0.18), transparent 70%);
  pointer-events: none;
}

.wd-auth-card-header,
.wd-auth-form,
.wd-auth-feedback-stack {
  position: relative;
  z-index: 1;
}

.wd-auth-card-header {
  margin-bottom: 1.35rem;
}

.wd-auth-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(227, 109, 29, 0.1);
  color: #8b4418;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wd-auth-card-title {
  margin: 1rem 0 0;
  color: #28180f;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.wd-auth-card-copy {
  margin: 0.6rem 0 0;
  color: #6b5545;
  font-size: 0.98rem;
}

.wd-auth-feedback-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wd-login-inline-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.92rem 0.96rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  font-size: 0.93rem;
  font-weight: 600;
}

.wd-login-inline-alert i {
  font-size: 1rem;
  margin-top: 0.1rem;
}

.wd-login-inline-alert--danger,
.wd-login-inline-alert--error {
  border-color: #efc0b7;
  background: linear-gradient(180deg, #fff7f5, #fff2ef);
  color: #9b3327;
}

.wd-login-inline-alert--warning {
  border-color: #f0d4a0;
  background: linear-gradient(180deg, #fffaf0, #fff6e6);
  color: #8b5d07;
}

.wd-login-inline-alert--success {
  border-color: #b9e2ca;
  background: linear-gradient(180deg, #f4fcf7, #effaf3);
  color: #1b6a46;
}

.wd-login-inline-alert--info {
  border-color: #c8dcec;
  background: linear-gradient(180deg, #f4fbff, #edf8ff);
  color: #1f6289;
}

.wd-auth-form {
  display: grid;
  gap: 1.1rem;
}

.wd-auth-required-note {
  margin-bottom: 0;
  padding: 0.8rem 0.95rem;
  border-style: solid;
  border-color: #e7d4c5;
  border-radius: 1rem;
  background: rgba(255, 248, 243, 0.9);
}

.wd-auth-field {
  display: grid;
  gap: 0.5rem;
}

.wd-auth-label {
  color: #3d2b1f;
  font-size: 0.94rem;
  font-weight: 800;
}

.wd-auth-input-wrap {
  position: relative;
}

.wd-auth-input-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  z-index: 2;
  transform: translateY(-50%);
  color: #9b6b4b;
  font-size: 1.05rem;
  pointer-events: none;
}

.wd-auth-input.form-control {
  min-height: 3.55rem;
  border-radius: 1rem;
  border-color: #d6c0b0;
  background: rgba(255, 252, 248, 0.96);
  box-shadow: inset 0 1px 2px rgba(61, 43, 31, 0.06);
}

.wd-auth-input.form-control:hover {
  border-color: #c8a890;
}

.wd-auth-input.form-control:focus {
  border-color: #e36d1d;
  background: #ffffff;
  box-shadow: 0 0 0 0.28rem rgba(227, 109, 29, 0.16);
}

.wd-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  z-index: 2;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0.78rem;
  background: rgba(61, 43, 31, 0.08);
  color: #5d4434;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.78rem;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.wd-password-toggle:hover {
  background: rgba(61, 43, 31, 0.14);
  color: #3d2b1f;
}

.wd-password-toggle:focus-visible {
  outline: none;
  box-shadow: var(--wd-focus-ring);
}

.wd-auth-field-error {
  display: grid;
  gap: 0.25rem;
  color: #b63030;
  font-size: 0.85rem;
  font-weight: 700;
}

.wd-auth-remember {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid #ead8c8;
  background: rgba(255, 249, 244, 0.9);
}

.wd-auth-remember-check {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  margin-bottom: 0.45rem;
}

.wd-auth-checkbox {
  width: 1.08rem;
  height: 1.08rem;
  margin-top: 0;
}

.wd-auth-remember-check .form-check-label {
  color: #2d1d14;
  font-weight: 800;
}

.wd-auth-remember-copy {
  margin: 0;
  color: #766253;
  font-size: 0.9rem;
}

.wd-auth-submit {
  min-height: 3.5rem;
  border-radius: 1rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

@media (max-width: 1480px) and (min-width: 992px), (max-height: 900px) and (min-width: 992px) {
  .wd-auth-shell {
    padding-block: 1rem;
  }

  .wd-auth-grid {
    width: min(1060px, 100%);
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    gap: 1.1rem;
  }

  .wd-auth-brand-panel,
  .wd-auth-card {
    border-radius: 1.7rem;
  }

  .wd-auth-brand-panel {
    min-height: 600px;
    padding: 1.7rem;
    gap: 1rem;
  }

  .wd-auth-logo-badge {
    padding: 0.85rem 1rem;
    border-radius: 1.1rem;
  }

  .wd-auth-logo {
    width: min(220px, 100%);
  }

  .wd-auth-title {
    max-width: 10.5ch;
    font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  }

  .wd-auth-subtitle {
    max-width: 32rem;
    font-size: 0.95rem;
  }

  .wd-auth-highlight {
    padding: 0.82rem 0.9rem;
  }

  .wd-auth-highlight strong {
    font-size: 0.92rem;
  }

  .wd-auth-highlight span {
    font-size: 0.87rem;
  }

  .wd-auth-card {
    padding: 1.4rem;
  }

  .wd-auth-card-header {
    margin-bottom: 1rem;
  }

  .wd-auth-card-title {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
  }

  .wd-auth-card-copy,
  .wd-auth-required-note,
  .wd-auth-remember-copy,
  .wd-login-inline-alert {
    font-size: 0.89rem;
  }

  .wd-auth-form {
    gap: 0.9rem;
  }

  .wd-auth-input.form-control {
    min-height: 3.15rem;
  }

  .wd-auth-remember {
    padding: 0.82rem 0.9rem;
  }

  .wd-auth-submit {
    min-height: 3.15rem;
  }
}

@media (max-width: 1280px) and (min-width: 992px), (max-height: 780px) and (min-width: 992px) {
  .wd-auth-shell {
    align-items: flex-start;
    padding-block: 0.7rem;
  }

  .wd-auth-grid {
    width: min(960px, 100%);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
    gap: 0.9rem;
  }

  .wd-auth-brand-panel,
  .wd-auth-card {
    border-radius: 1.45rem;
  }

  .wd-auth-brand-panel {
    min-height: auto;
    padding: 1.35rem;
    gap: 0.78rem;
  }

  .wd-auth-logo-badge {
    padding: 0.7rem 0.85rem;
  }

  .wd-auth-logo {
    width: min(180px, 100%);
  }

  .wd-auth-kicker {
    font-size: 0.67rem;
    letter-spacing: 0.14em;
  }

  .wd-auth-title {
    max-width: 10ch;
    font-size: clamp(1.8rem, 2.8vw, 2.55rem);
  }

  .wd-auth-subtitle {
    max-width: 28rem;
    font-size: 0.88rem;
  }

  .wd-auth-highlights {
    gap: 0.55rem;
  }

  .wd-auth-highlight {
    padding: 0.7rem 0.8rem;
  }

  .wd-auth-highlight:last-child {
    display: none;
  }

  .wd-auth-highlight strong {
    font-size: 0.88rem;
  }

  .wd-auth-highlight span {
    font-size: 0.82rem;
  }

  .wd-auth-card {
    padding: 1.12rem;
  }

  .wd-auth-chip {
    font-size: 0.69rem;
  }

  .wd-auth-card-title {
    margin-top: 0.75rem;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
  }

  .wd-auth-card-copy {
    margin-top: 0.45rem;
  }

  .wd-auth-form {
    gap: 0.75rem;
  }

  .wd-auth-required-note,
  .wd-login-inline-alert {
    padding: 0.72rem 0.8rem;
  }

  .wd-auth-label {
    font-size: 0.88rem;
  }

  .wd-auth-input.form-control {
    min-height: 2.9rem;
    font-size: 0.91rem;
  }

  .wd-auth-input-icon {
    left: 0.9rem;
    font-size: 0.96rem;
  }

  .wd-password-toggle {
    right: 0.55rem;
    font-size: 0.7rem;
    padding: 0.42rem 0.66rem;
  }

  .wd-auth-remember {
    padding: 0.72rem 0.8rem;
  }

  .wd-auth-remember-check {
    gap: 0.55rem;
    margin-bottom: 0.3rem;
  }

  .wd-auth-checkbox {
    width: 1rem;
    height: 1rem;
  }

  .wd-auth-submit {
    min-height: 2.95rem;
    font-size: 0.94rem;
  }
}

@media (max-width: 991.98px) {
  .wd-auth-grid {
    grid-template-columns: 1fr;
  }

  .wd-auth-brand-panel {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .wd-auth-shell {
    padding: 0.9rem 0.25rem;
  }

  .wd-auth-grid {
    gap: 1rem;
  }

  .wd-auth-brand-panel,
  .wd-auth-card {
    border-radius: 1.5rem;
  }

  .wd-auth-brand-panel {
    padding: 1.4rem;
  }

  .wd-auth-card {
    padding: 1.25rem;
  }

  .wd-auth-title {
    max-width: none;
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .wd-auth-highlight {
    grid-template-columns: 1fr;
  }

  .wd-password-toggle {
    padding-inline: 0.68rem;
  }
}
