/**
 * Hotel CRM — Premium admin theme (Bootstrap 4 + AdminLTE)
 * Hospitality palette: midnight navy, brass, champagne.
 */

:root {
  --classic-ink: #0f172a;
  --classic-ink-soft: #1e293b;
  /* Main app background: cool slate (replaces warm beige) */
  --classic-paper: #e8eef5;
  --classic-paper-deep: #dce4ef;
  --classic-gold: #b45309;
  --classic-gold-brass: #c9a227;
  --classic-gold-bright: #eab308;
  --classic-gold-soft: rgba(180, 83, 9, 0.15);
  --classic-cream: #f4f7fb;
  --classic-border: rgba(15, 23, 42, 0.1);
  --classic-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  --classic-shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
  --classic-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --classic-radius: 14px;
  --classic-radius-sm: 0.5rem;
  --classic-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --classic-font-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --classic-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

/* Soft UI theme (theme-soft-ui) uses asset/admin/css/soft-ui.css — skip this block */
body.hold-transition:not(.theme-soft-ui),
body.theme-hotel-crm:not(.theme-soft-ui) {
  font-family: var(--classic-font-ui);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--classic-ink);
  background: linear-gradient(
    165deg,
    var(--classic-paper) 0%,
    #e2eaf4 48%,
    var(--classic-paper-deep) 100%
  ) !important;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body.theme-hotel-crm.theme-soft-ui {
  font-family: "Inter", var(--classic-font-ui), system-ui, sans-serif;
  color: var(--classic-ink);
  -webkit-font-smoothing: antialiased;
  /* Fallback if soft-ui.css fails to load */
  background: #f8f9fd !important;
}

body.theme-hotel-crm:not(.theme-soft-ui) .wrapper {
  background: transparent;
}

/* Soft ambient background in main area */
body.theme-hotel-crm:not(.theme-soft-ui) .content-wrapper::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: min(58vw, 540px);
  height: min(48vh, 400px);
  background: radial-gradient(
    ellipse at top right,
    rgba(59, 130, 246, 0.09) 0%,
    rgba(15, 23, 42, 0.03) 50%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

body.theme-hotel-crm:not(.theme-soft-ui) .content-wrapper > * {
  position: relative;
  z-index: 1;
}

/* --- Top navbar --- */
body.theme-hotel-crm:not(.theme-soft-ui) .main-header.navbar {
  background: var(--classic-cream) !important;
  border: none !important;
  border-bottom: 1px solid var(--classic-border) !important;
  box-shadow: var(--classic-shadow-sm);
  min-height: 3.35rem;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .main-header .navbar-nav .nav-link {
  color: var(--classic-ink-soft) !important;
  font-weight: 500;
  border-radius: var(--classic-radius-sm);
  transition: color 0.2s var(--classic-ease), background 0.2s var(--classic-ease);
}

body.theme-hotel-crm:not(.theme-soft-ui) .main-header .navbar-nav .nav-link:hover {
  color: var(--classic-ink) !important;
  background: var(--classic-gold-soft);
}

body.theme-hotel-crm:not(.theme-soft-ui) .form-control-navbar {
  border-radius: 999px !important;
  border: 1px solid var(--classic-border) !important;
  background: #fff !important;
  padding-left: 1rem !important;
}

body.theme-hotel-crm:not(.theme-soft-ui) .btn-navbar {
  border-radius: 0 999px 999px 0 !important;
  background: var(--classic-ink) !important;
  border-color: var(--classic-ink) !important;
  color: #fff !important;
}

body.theme-hotel-crm:not(.theme-soft-ui) .navbar-badge {
  font-weight: 600;
}

/* --- Sidebar --- */
body.theme-hotel-crm:not(.theme-soft-ui) .main-sidebar {
  background: linear-gradient(180deg, #0c1222 0%, var(--classic-ink) 38%, #0f172a 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.18);
}

body.theme-hotel-crm:not(.theme-soft-ui) .main-sidebar::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--classic-gold-brass), transparent);
  opacity: 0.85;
}

body.theme-hotel-crm:not(.theme-soft-ui) .brand-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 1rem 0.85rem !important;
  background: rgba(0, 0, 0, 0.15);
}

body.theme-hotel-crm:not(.theme-soft-ui) .brand-text {
  font-family: var(--classic-font-display);
  font-size: 1.55rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  color: #f0ebe0 !important;
  font-style: italic;
  line-height: 1.2;
}

body.theme-hotel-crm:not(.theme-soft-ui) .brand-link::after {
  content: "Hospitality CRM";
  display: block;
  font-family: var(--classic-font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(234, 179, 8, 0.75);
  margin-top: 0.4rem;
  font-style: normal;
}

body.theme-hotel-crm:not(.theme-soft-ui) .sidebar {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .nav-sidebar > .nav-item > .nav-link {
  border-radius: var(--classic-radius-sm);
  margin: 0.2rem 0.65rem;
  padding: 0.65rem 0.85rem;
  color: rgba(255, 255, 255, 0.78) !important;
  transition: background 0.22s var(--classic-ease), color 0.22s var(--classic-ease),
    transform 0.22s var(--classic-ease);
}

body.theme-hotel-crm:not(.theme-soft-ui) .nav-sidebar > .nav-item > .nav-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

body.theme-hotel-crm:not(.theme-soft-ui) .nav-sidebar > .nav-item > .nav-link.active {
  background: linear-gradient(
    90deg,
    rgba(201, 162, 39, 0.28) 0%,
    rgba(201, 162, 39, 0.08) 100%
  ) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--classic-gold-brass);
}

body.theme-hotel-crm:not(.theme-soft-ui) .nav-sidebar .nav-icon {
  opacity: 0.92;
}

body.theme-hotel-crm:not(.theme-soft-ui) .nav-treeview > .nav-item > .nav-link {
  padding-left: 2.2rem;
  font-size: 0.9rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .nav-sidebar .nav-treeview .nav-link.active {
  color: #fff !important;
}

/* --- Content area --- */
body.theme-hotel-crm:not(.theme-soft-ui) .content-wrapper {
  background: transparent !important;
}

body.theme-hotel-crm:not(.theme-soft-ui) .content-header {
  padding: 1.35rem 0 0.5rem;
  border-bottom: none;
}

body.theme-hotel-crm:not(.theme-soft-ui) .content-header h1 {
  font-family: var(--classic-font-display);
  font-size: 2.05rem;
  font-weight: 600;
  color: var(--classic-ink) !important;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .content-header h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--classic-gold) 0%,
    rgba(184, 149, 74, 0.25) 100%
  );
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-page-header .container-fluid {
  padding-bottom: 0.25rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .breadcrumb {
  background: transparent;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .breadcrumb-item a {
  color: var(--classic-gold);
  font-weight: 500;
}

body.theme-hotel-crm:not(.theme-soft-ui) .breadcrumb-item.active {
  color: var(--classic-ink-soft);
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-breadcrumb {
  border-color: var(--classic-border) !important;
  font-size: 0.875rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-breadcrumb .breadcrumb-item a {
  color: var(--classic-gold);
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-page-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-nav-badge {
  font-size: 0.65rem !important;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--classic-ink-soft) !important;
  background: #fff !important;
  border-color: var(--classic-border) !important;
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-nav-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.theme-hotel-crm:not(.theme-soft-ui) .content {
  padding-top: 0.5rem;
}

/* --- Cards --- */
body.theme-hotel-crm:not(.theme-soft-ui) .card {
  border: 1px solid var(--classic-border);
  border-radius: var(--classic-radius);
  box-shadow: var(--classic-shadow-sm);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.25s var(--classic-ease);
}

body.theme-hotel-crm:not(.theme-soft-ui) .card:hover {
  box-shadow: var(--classic-shadow);
}

body.theme-hotel-crm:not(.theme-soft-ui) .card-primary.card-outline {
  border-top: 3px solid var(--classic-gold-brass);
}

body.theme-hotel-crm:not(.theme-soft-ui) .card-header {
  background: linear-gradient(180deg, #fff 0%, var(--classic-cream) 100%);
  border-bottom: 1px solid var(--classic-border);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .card-title {
  font-family: var(--classic-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--classic-ink);
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-card-hint {
  font-family: var(--classic-font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--classic-gold);
  opacity: 0.85;
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-room-card .card-body {
  padding: 1.35rem 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, #fff 12%);
}

/* --- Stat small boxes --- */
body.theme-hotel-crm:not(.theme-soft-ui) .small-box {
  border-radius: var(--classic-radius);
  box-shadow: var(--classic-shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.28s var(--classic-ease), box-shadow 0.28s var(--classic-ease);
}

body.theme-hotel-crm:not(.theme-soft-ui) .small-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--classic-shadow);
}

body.theme-hotel-crm:not(.theme-soft-ui) .small-box .inner h3 {
  font-family: var(--classic-font-display);
  font-weight: 700;
  font-size: 2rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .small-box .inner p {
  font-weight: 500;
  opacity: 0.95;
}

body.theme-hotel-crm:not(.theme-soft-ui) .small-box.bg-warning {
  background: linear-gradient(135deg, #d4a84b 0%, #b45309 100%) !important;
}

body.theme-hotel-crm:not(.theme-soft-ui) .small-box.bg-info {
  background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
}

body.theme-hotel-crm:not(.theme-soft-ui) .small-box.bg-success {
  background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%) !important;
}

body.theme-hotel-crm:not(.theme-soft-ui) .small-box.bg-primary {
  background: linear-gradient(135deg, var(--classic-ink-soft) 0%, var(--classic-ink) 100%) !important;
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-stat-box .inner {
  padding: 1.1rem 1rem 0.85rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-stat-box .icon {
  font-size: 2.85rem !important;
  opacity: 0.28;
  transition: opacity 0.3s var(--classic-ease), transform 0.3s var(--classic-ease);
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-stat-box:hover .icon {
  opacity: 0.42;
  transform: scale(1.05);
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-stat-box .inner p {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-dashboard .container-fluid {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

@media (min-width: 992px) {
  body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-stat-row {
    margin-left: -0.35rem;
    margin-right: -0.35rem;
  }
  body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-stat-row > [class*="col-"] {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}

body.theme-hotel-crm:not(.theme-soft-ui) .small-box-footer {
  background: rgba(0, 0, 0, 0.12) !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--classic-ease);
}

body.theme-hotel-crm:not(.theme-soft-ui) .small-box-footer:hover {
  background: rgba(0, 0, 0, 0.2) !important;
  color: #fff !important;
}

/* --- Footer --- */
body.theme-hotel-crm:not(.theme-soft-ui) .main-footer {
  background: var(--classic-cream) !important;
  border-top: 1px solid var(--classic-border) !important;
  color: var(--classic-ink-soft);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .main-footer a {
  color: var(--classic-gold);
  font-weight: 500;
}

/* --- Buttons --- */
body.theme-hotel-crm:not(.theme-soft-ui) .btn-primary {
  background: var(--classic-ink) !important;
  border-color: var(--classic-ink) !important;
  border-radius: var(--classic-radius-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--classic-ease), box-shadow 0.2s var(--classic-ease);
}

body.theme-hotel-crm:not(.theme-soft-ui) .btn-primary:hover {
  background: var(--classic-ink-soft) !important;
  border-color: var(--classic-ink-soft) !important;
  box-shadow: 0 4px 14px rgba(28, 36, 51, 0.25);
}

body.theme-hotel-crm:not(.theme-soft-ui) .btn-default,
body.theme-hotel-crm:not(.theme-soft-ui) .btn-secondary {
  border-radius: var(--classic-radius-sm);
}

/* --- Tables (DataTables) --- */
body.theme-hotel-crm:not(.theme-soft-ui) .table thead th {
  font-weight: 600;
  color: var(--classic-ink);
  border-bottom-width: 2px;
  border-color: var(--classic-border);
}

body.theme-hotel-crm:not(.theme-soft-ui) .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(226, 232, 240, 0.55);
}

/* --- Forms --- */
body.theme-hotel-crm:not(.theme-soft-ui) .form-control {
  border-radius: var(--classic-radius-sm);
  border-color: var(--classic-border);
  transition: border-color 0.2s var(--classic-ease), box-shadow 0.2s var(--classic-ease);
}

body.theme-hotel-crm:not(.theme-soft-ui) .form-control:focus {
  border-color: var(--classic-gold);
  box-shadow: 0 0 0 0.2rem var(--classic-gold-soft);
}

/* --- User dropdown --- */
body.theme-hotel-crm:not(.theme-soft-ui) .user-menu .user-header {
  background: linear-gradient(
    135deg,
    var(--classic-ink) 0%,
    var(--classic-ink-soft) 100%
  ) !important;
  border-radius: 0;
}

body.theme-hotel-crm:not(.theme-soft-ui) .dropdown-menu {
  border-radius: var(--classic-radius-sm);
  border: 1px solid var(--classic-border);
  box-shadow: var(--classic-shadow);
}

/* --- Modals --- */
body.theme-hotel-crm:not(.theme-soft-ui) .modal-content {
  border-radius: var(--classic-radius);
  border: 1px solid var(--classic-border);
  box-shadow: var(--classic-shadow);
}

body.theme-hotel-crm:not(.theme-soft-ui) .modal-header {
  border-bottom-color: var(--classic-border);
  font-family: var(--classic-font-display);
}

/* --- Control sidebar toggle (optional subtle) --- */
body.theme-hotel-crm:not(.theme-soft-ui) .control-sidebar {
  background: var(--classic-ink) !important;
}

/* --- Room status ribbons --- */
body.theme-hotel-crm:not(.theme-soft-ui) .ribbon-wrapper .ribbon {
  font-weight: 600;
  letter-spacing: 0.03em;
}

body.theme-hotel-crm:not(.theme-soft-ui) .content .position-relative.p-3.bg-success,
body.theme-hotel-crm:not(.theme-soft-ui) .content .position-relative.p-3.bg-danger,
body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-room-tile {
  border-radius: var(--classic-radius-sm);
  box-shadow: var(--classic-shadow-sm), var(--classic-shadow-inset);
  transition: transform 0.22s var(--classic-ease), box-shadow 0.22s var(--classic-ease);
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  line-height: 1.55;
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-room-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border-radius: var(--classic-radius-sm);
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-room-link:hover .hotel-crm-room-tile {
  transform: translateY(-3px);
  box-shadow: var(--classic-shadow), var(--classic-shadow-inset);
}

body.theme-hotel-crm:not(.theme-soft-ui) .hotel-crm-room-tile small {
  opacity: 0.92;
  display: inline-block;
  margin-top: 0.35rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .content .position-relative.p-3.bg-success:hover,
body.theme-hotel-crm:not(.theme-soft-ui) .content .position-relative.p-3.bg-danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--classic-shadow);
}

/* --- Alerts --- */
body.theme-hotel-crm:not(.theme-soft-ui) .alert {
  border-radius: var(--classic-radius-sm);
  border: none;
}

/* --- Pagination --- */
body.theme-hotel-crm:not(.theme-soft-ui) .page-link {
  border-radius: var(--classic-radius-sm);
  margin: 0 2px;
  color: var(--classic-ink-soft);
}

body.theme-hotel-crm:not(.theme-soft-ui) .page-item.active .page-link {
  background: var(--classic-ink);
  border-color: var(--classic-ink);
}

/* Badges & labels */
body.theme-hotel-crm:not(.theme-soft-ui) .badge {
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35em 0.55em;
  border-radius: 6px;
}

body.theme-hotel-crm:not(.theme-soft-ui) .badge-warning {
  background: linear-gradient(135deg, #c9a24d, #a67c2e) !important;
  color: #fff !important;
}

/* Select2 */
body.theme-hotel-crm:not(.theme-soft-ui) .select2-container--default .select2-selection--single {
  border-radius: var(--classic-radius-sm) !important;
  border-color: var(--classic-border) !important;
  min-height: calc(1.5em + 0.75rem + 2px);
  padding-top: 0.2rem;
}

body.theme-hotel-crm:not(.theme-soft-ui) .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--classic-gold) !important;
  box-shadow: 0 0 0 0.2rem var(--classic-gold-soft);
}

/* Scrollbar (WebKit) */
body.theme-hotel-crm:not(.theme-soft-ui) .sidebar::-webkit-scrollbar {
  width: 6px;
}

body.theme-hotel-crm:not(.theme-soft-ui) .sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

body.theme-hotel-crm:not(.theme-soft-ui) .sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}

/* Image zoom (gentler) --- */
.zoom:hover {
  transform: scale(1.08);
  transition: transform 0.35s var(--classic-ease);
}

.zoom {
  transition: transform 0.35s var(--classic-ease);
}

/* Bootstrap: extra hotel CRM actions */
body.theme-hotel-crm:not(.theme-soft-ui) .btn-success {
  border-radius: var(--classic-radius-sm);
  font-weight: 600;
  background: linear-gradient(135deg, #2d6a4f, #1b4332) !important;
  border-color: #1b4332 !important;
}

body.theme-hotel-crm:not(.theme-soft-ui) .btn-success:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.35);
}

body.theme-hotel-crm:not(.theme-soft-ui) .btn-outline-secondary {
  border-radius: var(--classic-radius-sm);
  border-color: var(--classic-border);
  color: var(--classic-ink-soft);
}

body.theme-hotel-crm:not(.theme-soft-ui) .btn-outline-secondary:hover {
  background: var(--classic-ink);
  border-color: var(--classic-ink);
  color: #fff;
}

/* --- Login page v2 (aligned with admin light UI) --- */
body.hotel-crm-login.login-page {
  background: #f1f5f9 !important;
  background-image: none !important;
}

body.hotel-crm-login.hotel-crm-login-v2 {
  font-family: var(--classic-font-ui);
  min-height: 100vh;
  margin: 0;
  background: #f1f5f9 !important;
  padding: 0;
}

body.hotel-crm-login-v2::before,
body.hotel-crm-login-v2::after {
  display: none;
}

body.hotel-crm-login-v2 .hotel-crm-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

body.hotel-crm-login-v2 .hotel-crm-login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.04);
  animation: hotel-crm-login-shell-in 0.55s var(--classic-ease) both;
}

.hotel-crm-login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: hotel-crm-login-shell-in 0.7s var(--classic-ease) both;
}

@keyframes hotel-crm-login-shell-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767.98px) {
  .hotel-crm-login-shell {
    grid-template-columns: 1fr;
    border-radius: 16px;
    max-width: 440px;
  }
}

/* Left brand panel */
body.hotel-crm-login-v2 .hotel-crm-login-brand-side {
  position: relative;
  padding: 2.25rem 2rem;
  background: linear-gradient(165deg, #fff7ed 0%, #ffedd5 55%, #fed7aa 100%);
  color: #431407;
  display: flex;
  align-items: center;
  min-height: 440px;
  border-right: 1px solid rgba(234, 88, 12, 0.12);
}

body.hotel-crm-login-v2 .hotel-crm-login-brand-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.65), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(234, 88, 12, 0.08), transparent 50%);
  pointer-events: none;
}

.hotel-crm-login-brand-side {
  position: relative;
  padding: 2.5rem 2rem;
  background: linear-gradient(160deg, #1c1917 0%, #292524 38%, #78350f 120%);
  color: #fafaf9;
  display: flex;
  align-items: center;
  min-height: 420px;
}

.hotel-crm-login-brand-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06), transparent 40%);
  pointer-events: none;
}

.hotel-crm-login-brand-side-inner {
  position: relative;
  z-index: 1;
}

body.hotel-crm-login-v2 .hotel-crm-login-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c2410c;
  margin: 0;
}

body.hotel-crm-login-v2 .hotel-crm-login-logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
}

body.hotel-crm-login-v2 .hotel-crm-login-logo-mark--img {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(234, 88, 12, 0.2);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

body.hotel-crm-login-v2 .hotel-crm-login-logo-mark--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-crm-login-logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.35), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(253, 230, 138, 0.35);
  color: #fef3c7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hotel-crm-login-logo-mark--sm {
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
  margin-bottom: 0;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

body.hotel-crm-login-v2 .hotel-crm-login-brand-title {
  font-family: var(--classic-font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f172a;
  text-shadow: none;
}

body.hotel-crm-login-v2 .hotel-crm-login-brand-tagline {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 1.35rem;
  color: #57534e;
  max-width: 32ch;
}

body.hotel-crm-login-v2 .hotel-crm-login-brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #44403c;
}

body.hotel-crm-login-v2 .hotel-crm-login-brand-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

body.hotel-crm-login-v2 .hotel-crm-login-brand-list li i {
  color: #ea580c;
  font-size: 0.85rem;
  width: 1.1rem;
  text-align: center;
}

.hotel-crm-login-brand-title {
  font-family: var(--classic-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hotel-crm-login-brand-tagline {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 28ch;
}

.hotel-crm-login-brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.hotel-crm-login-brand-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hotel-crm-login-brand-list li i {
  color: #fbbf24;
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .hotel-crm-login-brand-side {
    display: none;
  }
}

/* Right form column */
body.hotel-crm-login-v2 .hotel-crm-login-card-side {
  background: #ffffff;
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.hotel-crm-login-v2 .hotel-crm-login-card {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

body.hotel-crm-login-v2 .hotel-crm-login-card-inner {
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
}

body.hotel-crm-login-v2 .hotel-crm-login-welcome {
  font-size: 1.65rem;
  margin-bottom: 0.25rem;
}

body.hotel-crm-login-v2 .hotel-crm-login-heading {
  margin-bottom: 1.5rem;
}

body.hotel-crm-login-v2 .hotel-crm-login-input-group .input-group-text {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
  border-radius: 10px 0 0 10px;
}

body.hotel-crm-login-v2 .hotel-crm-login-input-group .form-control {
  border-color: #e2e8f0;
  background: #fff;
  border-radius: 0 10px 10px 0;
  min-height: 46px;
}

body.hotel-crm-login-v2 .hotel-crm-login-input-group:focus-within .input-group-text,
body.hotel-crm-login-v2 .hotel-crm-login-input-group .form-control:focus {
  border-color: #fdba74;
}

body.hotel-crm-login-v2 .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #ea580c;
  border-color: #ea580c;
}

body.hotel-crm-login-v2 .hotel-crm-login-submit {
  border-radius: 12px !important;
  padding: 0.72rem 1rem !important;
  font-weight: 700 !important;
  background: #0f172a !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.hotel-crm-login-v2 .hotel-crm-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28) !important;
  filter: none;
}

.hotel-crm-login-card-side {
  background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .hotel-crm-login-card-side {
    padding: 2.25rem 2.5rem 2.5rem;
  }
}

.hotel-crm-login-mobile-brand {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hotel-crm-login-mobile-brand .hotel-crm-login-brand {
  font-family: var(--classic-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--classic-ink);
}

.hotel-crm-login-mobile-brand .hotel-crm-login-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--classic-ink-soft);
  margin-top: 0.15rem;
}

body.hotel-crm-login .hotel-crm-login-card {
  border-radius: 16px !important;
  border: 1px solid rgba(28, 25, 23, 0.08) !important;
  box-shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
  background: #fff !important;
}

body.hotel-crm-login .login-card-body {
  padding: 0;
}

.hotel-crm-login-welcome {
  font-family: var(--classic-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--classic-ink);
  margin: 0 0 0.35rem;
}

body.hotel-crm-login .hotel-crm-login-heading + .login-box-msg,
body.hotel-crm-login .hotel-crm-login-heading ~ .login-box-msg {
  margin-bottom: 1.5rem !important;
}

body.hotel-crm-login .login-box-msg {
  font-size: 0.9rem;
  color: var(--classic-ink-soft);
}

.hotel-crm-login-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--classic-ink);
  margin-bottom: 0.35rem;
}

body.hotel-crm-login .hotel-crm-login-input-group .input-group-text {
  background: #f5f5f4;
  border: 1px solid var(--classic-border);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: var(--classic-ink-soft);
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  font-size: 1rem;
}

body.hotel-crm-login .hotel-crm-login-input-group .input-group-text i.fas {
  display: inline-block;
  width: 1.1em;
  text-align: center;
  line-height: 1;
}

body.hotel-crm-login .hotel-crm-login-input-group .form-control {
  border-radius: 0 10px 10px 0;
  padding: 0.65rem 1rem;
  border: 1px solid var(--classic-border);
  border-left: 0;
  font-size: 0.95rem;
}

body.hotel-crm-login .hotel-crm-login-input-group .form-control:focus {
  border-color: rgba(120, 53, 15, 0.35);
  box-shadow: none;
}

body.hotel-crm-login .hotel-crm-login-input-group:focus-within .input-group-text {
  border-color: rgba(120, 53, 15, 0.35);
}

.hotel-crm-login-remember {
  font-size: 0.875rem;
  color: var(--classic-ink-soft);
}

body.hotel-crm-login .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--classic-ink);
  border-color: var(--classic-ink);
}

body.hotel-crm-login .hotel-crm-login-alert {
  border-radius: 10px;
  font-size: 0.9rem;
}

body.hotel-crm-login .btn-primary.login,
body.hotel-crm-login .btn-block.btn-primary.hotel-crm-login-submit {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #1c1917 0%, #44403c 55%, #78350f 160%) !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(28, 25, 23, 0.25);
  transition: transform 0.2s var(--classic-ease), box-shadow 0.2s var(--classic-ease);
}

body.hotel-crm-login .btn-primary.login:hover,
body.hotel-crm-login .btn-block.btn-primary.hotel-crm-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.35);
  filter: brightness(1.05);
}

@media (max-width: 767.98px) {
  body.hotel-crm-login-v2 .hotel-crm-login-page {
    padding: 0.75rem;
  }

  body.hotel-crm-login-v2 .hotel-crm-login-shell {
    grid-template-columns: 1fr;
    max-width: 420px;
    border-radius: 16px;
  }

  body.hotel-crm-login-v2 .hotel-crm-login-brand-side {
    display: none;
  }

  body.hotel-crm-login-v2 .hotel-crm-login-card-side {
    padding: 1.25rem 1.15rem 1rem;
  }

  body.hotel-crm-login-v2 .hotel-crm-login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
  }

  body.hotel-crm-login-v2 .hotel-crm-login-mobile-brand .hotel-crm-login-logo-mark--sm {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    margin: 0;
    flex-shrink: 0;
  }

  body.hotel-crm-login-v2 .hotel-crm-login-mobile-brand .hotel-crm-login-brand {
    font-family: var(--classic-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a !important;
    text-shadow: none;
  }

  body.hotel-crm-login-v2 .hotel-crm-login-mobile-brand .hotel-crm-login-sub {
    color: #64748b !important;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.75rem;
  }

  /* Legacy mobile login (non-v2) */
  body.hotel-crm-login:not(.hotel-crm-login-v2) {
    padding: 0.65rem 0.75rem;
  }

  body.hotel-crm-login:not(.hotel-crm-login-v2)::before {
    background:
      radial-gradient(ellipse 120% 70% at 50% -8%, rgba(212, 175, 55, 0.32), transparent 52%),
      linear-gradient(175deg, #12080a 0%, #0c1222 45%, #1c100e 100%);
  }
}

/* Login attract — premium split + ambient background */
body.hotel-crm-login-attract {
  background: #0b1220 !important;
}

body.hotel-crm-login-attract .hotel-crm-login-page {
  position: relative;
  overflow: hidden;
}

body.hotel-crm-login-attract .hotel-crm-login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.hotel-crm-login-attract .hotel-crm-login-bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: hotel-crm-login-float 14s ease-in-out infinite alternate;
}

body.hotel-crm-login-attract .hotel-crm-login-bg span:nth-child(1) {
  width: 420px;
  height: 420px;
  background: rgba(234, 88, 12, 0.45);
  top: -8%;
  left: -5%;
}

body.hotel-crm-login-attract .hotel-crm-login-bg span:nth-child(2) {
  width: 360px;
  height: 360px;
  background: rgba(59, 130, 246, 0.25);
  bottom: -10%;
  right: 5%;
  animation-delay: -4s;
}

body.hotel-crm-login-attract .hotel-crm-login-bg span:nth-child(3) {
  width: 280px;
  height: 280px;
  background: rgba(251, 191, 36, 0.35);
  top: 40%;
  right: 30%;
  animation-delay: -7s;
}

@keyframes hotel-crm-login-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(12px, -18px) scale(1.06); }
}

body.hotel-crm-login-attract .hotel-crm-login-shell {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.hotel-crm-login-attract .hotel-crm-login-brand-side {
  background: linear-gradient(155deg, #0f172a 0%, #1e293b 42%, #78350f 115%) !important;
  color: #f8fafc !important;
  border-right: none !important;
}

body.hotel-crm-login-attract .hotel-crm-login-brand-side::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.22), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.08), transparent 45%) !important;
}

body.hotel-crm-login-attract .hotel-crm-login-eyebrow {
  color: #fcd34d !important;
}

body.hotel-crm-login-attract .hotel-crm-login-brand-title {
  color: #fff !important;
  font-size: 1.85rem !important;
}

body.hotel-crm-login-attract .hotel-crm-login-brand-tagline {
  color: rgba(248, 250, 252, 0.82) !important;
}

body.hotel-crm-login-attract .hotel-crm-login-logo-mark {
  background: linear-gradient(135deg, #fbbf24, #ea580c) !important;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.45) !important;
}

body.hotel-crm-login-attract .hotel-crm-login-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

body.hotel-crm-login-attract .hotel-crm-login-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

body.hotel-crm-login-attract .hotel-crm-login-feature i {
  color: #fbbf24;
  width: 1rem;
  text-align: center;
}

body.hotel-crm-login-attract .hotel-crm-login-card-side {
  background: #ffffff !important;
}

body.hotel-crm-login-attract .hotel-crm-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

body.hotel-crm-login-attract .hotel-crm-login-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 55%, #9a3412 100%) !important;
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.4) !important;
}

body.hotel-crm-login-attract .hotel-crm-login-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  body.hotel-crm-login-attract .hotel-crm-login-shell {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  }
}

/* Legacy single-column helpers */
body.hotel-crm-login .login-box {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

body.hotel-crm-login .hotel-crm-login-brand {
  font-family: var(--classic-font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: #faf8f5 !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
}

body.hotel-crm-login .hotel-crm-login-sub {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}
