/* Login - standalone styles */
/* SCAD Back Office – PTSHOP-style light theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bo-bg: #f4f7f6;
  --bo-surface: #ffffff;
  --bo-surface-2: #f8f9fa;
  --bo-border: #e8eceb;
  --bo-border-light: #eef1f0;
  --bo-text: #2d3436;
  --bo-text-muted: #6c757d;
  --bo-accent: #0bbab0;
  --bo-accent-dark: #0a9e96;
  --bo-accent-light: #e6f7f6;
  --bo-primary: #0bbab0;
  --bo-badge: #4a9fd4;
  --bo-danger: #e74c3c;
  --bo-success: #27ae60;
  --bo-sidebar-w: 268px;
  --bo-topbar-h: 60px;
  --bo-radius: 10px;
  --bo-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

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

body.backoffice-body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9375rem;
  background: var(--bo-bg);
  color: var(--bo-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.bo-layout { display: flex; min-height: 100vh; }

.bo-sidebar {
  width: var(--bo-sidebar-w);
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid #e8e8e8;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.bo-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 1.1rem 1rem;
  border-bottom: 1px solid #ebebeb;
  flex-shrink: 0;
}

.bo-sidebar-brand__logo {
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.bo-sidebar-brand__dark { color: #2a2a2a; }
.bo-sidebar-brand__accent { color: #0bbab0; }

.bo-sidebar-brand__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: #b8b8b8;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.bo-sidebar-brand__menu:hover {
  color: #666;
  background: #f5f5f5;
}

.bo-sidebar-nav {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.35rem 0 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #5a5a5a #e6e6e6;
}

.bo-sidebar-nav::-webkit-scrollbar { width: 11px; }
.bo-sidebar-nav::-webkit-scrollbar-track { background: #ececec; }
.bo-sidebar-nav::-webkit-scrollbar-thumb {
  background: #4f4f4f;
  border-radius: 8px;
  border: 2px solid #ececec;
}
.bo-sidebar-nav::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

.bo-sidebar-block { margin-bottom: 0.15rem; }

.bo-sidebar-section {
  padding: 0.95rem 1.1rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ababab;
}

.bo-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bo-sidebar-menu li { margin: 0; }

.bo-sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.58rem 1.1rem;
  color: #454545;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.12s ease, color 0.12s ease;
}

.bo-sidebar-menu a:hover {
  background: #f8f8f8;
  color: #222;
}

.bo-sidebar-menu a.active {
  color: #0bbab0;
  font-weight: 600;
}

.bo-sidebar-menu a i {
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.95rem;
  color: #9a9a9a;
}

.bo-sidebar-menu a:hover i { color: #666; }
.bo-sidebar-menu a.active i { color: #0bbab0; }

.bo-sidebar-menu a span {
  flex: 1;
  min-width: 0;
}

.bo-sidebar-footer {
  flex-shrink: 0;
  padding: 0.9rem 1rem;
  text-align: center;
  font-size: 0.72rem;
  color: #b8b8b8;
  border-top: 1px solid #ebebeb;
  background: #fff;
}

.bo-right {
  flex: 1;
  margin-left: var(--bo-sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top bar */
.bo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bo-topbar-h);
  padding: 0 1.5rem;
  background: var(--bo-surface);
  border-bottom: 1px solid var(--bo-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.bo-topbar__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bo-topbar__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--bo-text);
}

.bo-topbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bo-topbar__user {
  text-align: right;
  line-height: 1.3;
}

.bo-topbar__user-name { font-weight: 600; font-size: 0.9rem; display: block; }
.bo-topbar__user-email { font-size: 0.78rem; color: var(--bo-text-muted); }

.bo-topbar__notif {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--bo-text-muted);
  text-decoration: none;
  transition: background 0.15s;
}

.bo-topbar__notif:hover { background: var(--bo-surface-2); color: var(--bo-text); }

.bo-btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--bo-border);
  border-radius: 8px;
  background: var(--bo-surface);
  color: var(--bo-text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.bo-btn-logout:hover { background: var(--bo-surface-2); border-color: #ccc; }

/* Main content */
.bo-main {
  flex: 1;
  padding: 1.5rem;
}

.bo-card {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  box-shadow: var(--bo-shadow);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Filter bar */
.bo-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  margin-bottom: 1rem;
  cursor: pointer;
}

.bo-filter-bar__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.bo-filter-bar__range {
  font-size: 0.85rem;
  color: var(--bo-text-muted);
}

/* Tabs */
.bo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.bo-tab-btn {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--bo-border);
  border-radius: 999px;
  background: var(--bo-surface);
  color: var(--bo-text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.bo-tab-btn:hover { border-color: var(--bo-accent); }
.bo-tab-btn.active {
  background: var(--bo-accent-light);
  border-color: var(--bo-accent);
  color: var(--bo-accent-dark);
  font-weight: 600;
}

/* KPI widgets */
.bo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bo-kpi-card {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  padding: 1.1rem 1.2rem;
  position: relative;
  box-shadow: var(--bo-shadow);
  transition: box-shadow 0.15s;
}

.bo-kpi-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.bo-kpi-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.bo-kpi-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bo-text-muted);
}

.bo-kpi-card__badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  background: #e3f2fd;
  color: var(--bo-badge);
  border-radius: 999px;
  font-weight: 600;
}

.bo-kpi-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bo-text);
  line-height: 1.2;
}

.bo-kpi-card__meta {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--bo-text-muted);
}

.bo-kpi-card__arrow {
  position: absolute;
  bottom: 0.85rem;
  right: 1rem;
  color: #ccc;
  font-size: 0.75rem;
}

/* Charts */
.bo-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1rem;
}

.bo-chart-card {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  padding: 1.1rem;
  box-shadow: var(--bo-shadow);
}

.bo-chart-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.bo-chart-card__sub {
  font-size: 0.8rem;
  color: var(--bo-text-muted);
  margin: 0 0 1rem;
}

.bo-chart-wrap { position: relative; height: 260px; }

/* Toolbar */
.bo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bo-toolbar__left, .bo-toolbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.bo-search-input, .bo-form-control, .form-control, .form-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--bo-border);
  border-radius: 8px;
  font-size: 0.875rem;
  background: var(--bo-surface);
  color: var(--bo-text);
  min-width: 140px;
}

.bo-search-input:focus, .bo-form-control:focus, .form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--bo-accent);
  box-shadow: 0 0 0 3px rgba(11,186,176,0.15);
}

/* Buttons */
.bo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
}

.bo-btn-primary {
  background: var(--bo-accent);
  color: #fff;
  border-color: var(--bo-accent);
}

.bo-btn-primary:hover { background: var(--bo-accent-dark); border-color: var(--bo-accent-dark); color: #fff; }

.bo-btn-secondary {
  background: var(--bo-surface);
  color: var(--bo-text);
  border-color: var(--bo-border);
}

.bo-btn-secondary:hover { background: var(--bo-surface-2); }

.bo-btn-danger {
  background: #fff;
  color: var(--bo-danger);
  border-color: #f5c6cb;
}

.bo-btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }

/* Tables */
.bo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  background: var(--bo-surface);
}

.bo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.bo-table th {
  background: var(--bo-surface-2);
  padding: 0.75rem 1rem;
  text-align: start;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bo-text-muted);
  border-bottom: 1px solid var(--bo-border);
  white-space: nowrap;
}

.bo-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--bo-border-light);
  vertical-align: middle;
}

.bo-table tbody tr:hover { background: #fafbfc; }
.bo-table tbody tr:last-child td { border-bottom: none; }

.bo-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.bo-badge-open { background: #d4edda; color: #155724; }
.bo-badge-closed { background: #f8d7da; color: #721c24; }
.bo-badge-stock { background: #e3f2fd; color: #1565c0; }

/* Forms */
.bo-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.bo-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bo-text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bo-form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.25rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bo-border-light);
}

.bo-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bo-border-light);
}

/* Recubage grid */
.bo-measure-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.bo-measure-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bo-text-muted);
  margin: 0 0 0.75rem;
}

.bo-measure-arrow {
  font-size: 1.5rem;
  color: var(--bo-accent);
  text-align: center;
}

/* Alerts */
.bo-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.bo-alert-danger,
.bo-alert--err { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; border-inline-start: 4px solid #dc2626; }
.bo-alert-success,
.bo-alert--ok { background: #e8f8ef; color: #14532d; border: 1px solid #86efac; border-inline-start: 4px solid #16a34a; }
.d-none { display: none !important; }

/* Modal */
.bo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bo-modal-backdrop.open { display: flex; }

.bo-modal {
  background: var(--bo-surface);
  border-radius: 12px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.bo-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bo-border);
}

.bo-modal__title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.bo-modal__close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--bo-text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.bo-modal__body { padding: 1.25rem; overflow-y: auto; }
.bo-modal__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--bo-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Login — glassmorphism split layout */
html:has(body.login-body) {
  height: 100%;
  overflow: hidden;
}

body.login-body {
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: #fff;
  background: #1a2e1f;
  -webkit-font-smoothing: antialiased;
}

.login-page {
  position: relative;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.login-page__bg {
  position: fixed;
  inset: 0;
  background: url('../images/login-logo.jpg') center center / cover no-repeat;
  transform: scale(1.04);
  z-index: 0;
}

.login-page__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 24, 16, 0.55) 0%, rgba(20, 40, 28, 0.35) 50%, rgba(8, 18, 12, 0.5) 100%);
  backdrop-filter: blur(2px);
}

.login-split {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  height: 100%;
  max-height: 100dvh;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.login-split__panel {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  box-sizing: border-box;
  padding: clamp(1rem, 2.5vh, 2rem) clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(10, 22, 16, 0.12) 0%, rgba(12, 28, 20, 0.18) 100%);
  border: none;
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.login-split__panel--center {
  justify-content: center;
}

.login-split__form {
  flex: 0 1 580px;
  width: 100%;
  max-width: 580px;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.login-glass {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 100%;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(42, 48, 44, 0.18) 0%, rgba(22, 28, 24, 0.24) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px) saturate(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(1.15);
}

.login-glass__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--scad-accent-dark) 0%, var(--scad-accent-mid) 50%, var(--scad-primary) 100%);
}

.login-glass__inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.5vh, 2.25rem) clamp(1.5rem, 2.5vw, 2.5rem);
}

.login-glass__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1rem, 2vh, 1.75rem);
  flex-shrink: 0;
}

.login-glass__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(64, 145, 108, 0.16);
  border: 1px solid rgba(116, 198, 157, 0.28);
}

.login-glass__badge i {
  color: #95d5b2;
  font-size: 0.85rem;
}

.login-glass__head {
  margin-bottom: clamp(1rem, 2vh, 1.75rem);
  padding-bottom: clamp(0.85rem, 1.5vh, 1.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.login-glass__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.login-glass__subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  max-width: 36ch;
}

.login-glass__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  background: rgba(231, 76, 60, 0.22);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #ffeaea;
}

.login-glass__alert i {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.login-glass__form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.5vh, 1.35rem);
}

.login-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap__icon {
  position: absolute;
  top: 50%;
  left: 1.05rem;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transition: color 0.2s;
}

[dir="rtl"] .login-input-wrap__icon {
  left: auto;
  right: 1.05rem;
}

.login-input {
  width: 100%;
  padding: 1.05rem 1.1rem 1.05rem 2.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

[dir="rtl"] .login-input {
  padding: 1.05rem 2.85rem 1.05rem 1.1rem;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.login-input-wrap:focus-within .login-input-wrap__icon {
  color: #95d5b2;
}

.login-input:focus {
  border-color: rgba(116, 198, 157, 0.55);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.22);
}

.login-input--password {
  padding-right: 3rem;
}

[dir="rtl"] .login-input--password {
  padding-right: 2.85rem;
  padding-left: 3rem;
}

.login-input-wrap__toggle {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

[dir="rtl"] .login-input-wrap__toggle {
  right: auto;
  left: 0.65rem;
}

.login-input-wrap__toggle:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

.login-input-wrap__toggle:focus-visible {
  outline: 2px solid rgba(116, 198, 157, 0.65);
  outline-offset: 2px;
}

.login-input-wrap--password:focus-within .login-input-wrap__toggle {
  color: rgba(149, 213, 178, 0.95);
}

.login-glass__actions {
  display: flex;
  justify-content: stretch;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 1.05rem 2rem;
  border: 1px solid rgba(116, 198, 157, 0.45);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45, 106, 79, 0.85) 0%, rgba(64, 145, 108, 0.9) 100%);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(27, 67, 50, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.login-submit:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 36px rgba(27, 67, 50, 0.45);
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(0) scale(0.99);
}

.login-glass__footer {
  margin-top: auto;
  padding-top: clamp(0.75rem, 1.5vh, 1.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.login-glass__hint {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.login-glass__hint i {
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: rgba(149, 213, 178, 0.7);
}

.login-intro {
  max-width: 360px;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.login-intro__brand {
  margin: 0 0 clamp(0.5rem, 1.5vh, 1rem);
  font-size: clamp(2.5rem, 6vh, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
}

.login-intro__lead {
  margin: 0 0 clamp(0.5rem, 1.5vh, 1rem);
  font-size: clamp(1rem, 2vh, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.login-intro__body {
  margin: 0;
  font-size: clamp(0.85rem, 1.6vh, 0.95rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.login-lang {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-bottom: 0;
}

body.login-body .bo-lang-switcher {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}

body.login-body .bo-lang-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
}

body.login-body .bo-lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.login-body .bo-lang-btn.active {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

@media (max-width: 900px) {
  .login-split__panel {
    padding: 1rem 1.25rem;
  }

  .login-split__form {
    flex: 1 1 auto;
    max-width: none;
  }

  .login-glass {
    max-width: none;
    flex-shrink: 1;
    min-height: 0;
  }

  .login-glass__inner {
    padding: 1.25rem 1.25rem 1rem;
  }
}

/* Mobile */
.bo-sidebar-toggle {
  display: none;
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--bo-border);
  background: var(--bo-surface);
  cursor: pointer;
}

.bo-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}

@media (max-width: 992px) {
  .bo-sidebar { transform: translateX(-100%); }
  .bo-sidebar.open { transform: translateX(0); }
  .bo-right { margin-left: 0; }
  .bo-sidebar-toggle { display: flex; align-items: center; justify-content: center; }
  .bo-sidebar-overlay.open { display: block; }
  .bo-measure-grid { grid-template-columns: 1fr; }
  .bo-measure-arrow { transform: rotate(90deg); }
}
/* RTL Arabic */
[dir="rtl"] .bo-sidebar { left:auto; right:0; border-right:none; border-left:1px solid #e8e8e8; }
[dir="rtl"] .bo-right { margin-left:0; margin-right:var(--bo-sidebar-w); }
[dir="rtl"] .bo-sidebar-menu a i { margin-left:0; }
[dir="rtl"] .bo-topbar__user { text-align:left; }
[dir="rtl"] .bo-kpi-card__arrow { right:auto; left:1rem; transform:scaleX(-1); }
[dir="rtl"] .bo-sidebar-toggle { left:auto; right:0.75rem; }
@media (max-width:992px) { [dir="rtl"] .bo-right { margin-right:0; } }

.bo-lang-switcher { display:flex; gap:0.25rem; border:1px solid var(--bo-border,#e8e8e8); border-radius:8px; overflow:hidden; }
.bo-lang-btn { padding:0.35rem 0.55rem; font-size:0.72rem; font-weight:700; text-decoration:none; color:#666; background:#fff; }
.bo-lang-btn.active { background:#0bbab0; color:#fff; }
.bo-lang-btn:hover { background:#f0f0f0; color:#333; }
.bo-lang-btn.active:hover { background:#0a9e96; color:#fff; }

/* Arabic typography */
body.lang-ar, html[dir="rtl"] body { font-family: 'Noto Sans Arabic', system-ui, -apple-system, sans-serif; }
