/* ============================================================
   1000Limpezas — Tema Global
   Importar este ficheiro no base template / layout principal
   ============================================================ */

/* Fontes */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Nunito:wght@300;400;500;600&display=swap');

/* ── Variáveis ─────────────────────────────────────────────── */
:root {
  --navy:         #1a2f6e;
  --navy-light:   #243a8a;
  --navy-dark:    #0d1d4d;
  --green:        #2db34a;
  --green-dark:   #26a043;
  --green-bg:     #e8f9ec;
  --blue:         #4ab8e8;
  --blue-bg:      #e8f4fb;
  --off-white:    #f4f7fb;
  --text:         #1c2340;
  --muted:        #6b7a99;
  --border:       rgba(26, 47, 110, 0.10);
  --border-light: rgba(26, 47, 110, 0.06);
  --shadow-sm:    0 2px 8px rgba(26, 47, 110, 0.06);
  --shadow-md:    0 4px 20px rgba(26, 47, 110, 0.08);
  --shadow-lg:    0 12px 40px rgba(26, 47, 110, 0.12);
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    18px;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-logo {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.app-nav .nav-link,
.app-nav a[data-nav],
.app-nav .help-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  padding: 12px 14px;
  color: #6b7386;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.app-nav .help-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0.9rem;
  padding: 0;
  color: #18233f;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 0.2s;
}

.app-nav .nav-link:hover,
.app-nav a[data-nav].active {
  color: var(--navy);
}

.app-nav .help-nav {
  border: 1px solid rgba(26, 47, 110, 0.2);
  background: #e7ecf7;
  color: #18233f;
  margin: 0 6px;
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-weight: 600;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.app-nav .help-nav::after {
  content: '?';
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  color: #18233f;
}

.app-nav .help-nav:hover {
  border-color: rgba(26, 47, 110, 0.4);
  background: #d7e0f2;
  color: #18233f;
}

.nav-dropdown-menu,
.nav-dropdown-menu * {
  color: #1c2340 !important;
}

.nav-dropdown-menu {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1001;
}

.nav-dropdown-menu .dropdown-header,
.nav-dropdown-menu .dropdown-title {
  color: #6b7280 !important;
}

.nav-dropdown-menu .dropdown-content {
  max-height: 300px;
  overflow-y: auto;
}

.nav-dropdown-menu .empresa-item {
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  color: #1c2340;
  padding: 0;
}

.nav-dropdown-menu .empresa-item:hover,
.nav-dropdown-menu .empresa-item.active {
  background: #f8fafc;
  color: #1c2340;
}

.nav-dropdown-menu .empresa-item a {
  color: #1c2340 !important;
  text-decoration: none;
  display: block;
  padding: 12px 16px;
  transition: background-color 0.15s ease;
}

.nav-dropdown-menu .empresa-item a:hover {
  color: #1c2340 !important;
  background-color: #f8fafc;
}

.nav-dropdown-menu .empresa-item a:focus {
  color: #1c2340 !important;
  background-color: #f8fafc;
}

.nav-dropdown-menu .empresa-item span {
  color: #1c2340 !important;
}

.nav-dropdown-menu .empresa-item button {
  color: #1c2340 !important;
  background: none;
  border: none;
  padding: 12px 16px;
  text-align: left;
  width: 100%;
  transition: background-color 0.15s ease;
}

.nav-dropdown-menu .empresa-item button:hover {
  color: #1c2340 !important;
  background-color: #f8fafc;
}

/* Navigation dropdowns */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown .nav-chevron {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-dropdown.active .nav-chevron,
.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1001;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.nav-dropdown.active .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  color: #1c2340 !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  color: #1c2340 !important;
  background-color: #f8fafc;
}

.nav-dropdown-menu a:focus {
  color: #1c2340 !important;
  background-color: #f8fafc;
}

.nav-dropdown-menu a i {
  color: #1c2340 !important;
  width: 16px;
  text-align: center;
}

/* Superadmin only items */
.superadmin-only {
  display: none;
}

body.is-superadmin .superadmin-only {
  display: flex;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 8px 8px 0 0;
    transform: translateY(100%);
  }
  
  .nav-dropdown.active .nav-dropdown-menu {
    transform: translateY(0);
  }
}
.admin-menu__dropdown {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1001;
  min-width: 200px;
}

.admin-menu__dropdown a {
  color: #1c2340 !important;
  text-decoration: none;
  display: block;
  padding: 12px 16px;
  transition: background-color 0.15s ease;
}

.admin-menu__dropdown a:hover {
  color: #1c2340 !important;
  background-color: #f8fafc;
}

.admin-menu__dropdown a:focus {
  color: #1c2340 !important;
  background-color: #f8fafc;
}

.admin-menu__dropdown a i {
  color: #1c2340 !important;
  margin-right: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-header .btn-secondary,
.app-header .btn-outline {
  border-color: rgba(37, 99, 235, 0.35);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.08);
}

.app-header .btn-secondary:hover,
.app-header .btn-outline:hover {
  background: #fff;
  color: var(--navy);
  border-color: rgba(37, 99, 235, 0.5);
}

.app-header .help-nav {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.12);
  color: #6b7386;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  font-size: 1rem;
}

.app-header .help-nav:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.35);
  color: #6b7386;
}

.app-header .admin-menu__button {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  padding: 6px 14px;
  border-radius: var(--radius-md);
}

.app-header .admin-menu__button:hover {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.35);
}

.app-header .admin-menu__name,
.app-header .admin-menu__role,
.app-header #global-admin-name,
.app-header #global-admin-role,
.app-header #empresa-nome-nav {
  color: #6b7386;
}

.app-header .admin-menu__initials {
  border-color: rgba(37, 99, 235, 0.25);
  color: #0f172a;
}

.admin-menu__dropdown {
  background: #fff;
  border: 1px solid rgba(13, 29, 77, 0.15);
  box-shadow: 0 20px 50px rgba(13, 29, 77, 0.25);
  border-radius: var(--radius-lg);
  color: var(--text);
  min-width: 240px;
  padding: 8px;
  margin-top: 8px;
}

.admin-menu__dropdown a {
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.admin-menu__dropdown a:hover {
  background: var(--off-white);
  color: var(--navy);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

/* ── Reset Base ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

/* ── Tipografia ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.page-title, .section-title, .card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.95rem; }

p, li, td, th, label, input, select, textarea {
  font-family: 'Nunito', sans-serif;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

/* ── Navbar / Topbar ───────────────────────────────────────── */
.navbar,
.topbar,
nav.main-nav,
header.app-header {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(26, 47, 110, 0.08);
  box-shadow: 0 12px 30px rgba(13, 29, 77, 0.12);
  backdrop-filter: blur(12px);
}

.navbar a,
.topbar a,
nav.main-nav a {
  color: #6b7386;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.navbar a:hover,
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--navy);
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sidebar .nav-item a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.sidebar .nav-item a:hover,
.sidebar .nav-item a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ── Botões ────────────────────────────────────────────────── */
.btn,
button,
input[type="submit"],
input[type="button"] {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

/* Primário */
.btn-primary,
.btn-success,
button[type="submit"],
.btn-novo,
.btn-guardar {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(45, 179, 74, 0.3);
}

.btn-primary:hover,
.btn-success:hover,
button[type="submit"]:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 179, 74, 0.4);
}

/* Secundário */
.btn-secondary,
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

/* Navy */
.btn-navy,
.btn-info {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* Destrutivo */
.btn-danger,
.btn-destructive,
.btn-desativar,
.btn-eliminar {
  background: transparent;
  color: #e53e3e;
  border: 2px solid #e53e3e;
}

.btn-danger:hover {
  background: #e53e3e;
  color: #fff;
}

/* Tamanhos */
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }

/* ── Modais ────────────────────────────────────────────── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 1.5rem 2rem 1rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--off-white);
  color: var(--text);
}

.modal-body {
  padding: 1rem 2rem 2rem 2rem;
}

.modal-footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ── Cards & Panels ─────────────────────────────────────────── */
.card,
.panel,
.box,
.modal-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header,
.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* ── Badges de Estado ──────────────────────────────────────── */
.badge,
.status-badge,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.badge-success,
.badge-ativo,
.badge-concluido,
.status-active {
  background: var(--green-bg);
  color: var(--green-dark);
}

.badge-warning,
.badge-pendente,
.badge-irregular,
.status-pending {
  background: #fff3e0;
  color: #c67c00;
}

.badge-danger,
.badge-inativo,
.status-inactive {
  background: #fef0f0;
  color: #c53030;
}

.badge-info,
.badge-blue {
  background: var(--blue-bg);
  color: #1a7aaa;
}

.badge-secondary,
.badge-gray {
  background: #f0f0f4;
  color: var(--muted);
}

.login-tab i {
  display: inline-flex;
  margin-right: 6px;
}

/* ── Tabelas ───────────────────────────────────────────────── */
table,
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table thead th,
.table thead th {
  background: var(--off-white);
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  text-align: left;
}

table tbody tr,
.table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

table tbody tr:hover,
.table tbody tr:hover {
  background: #f8faff;
}

table tbody td,
.table tbody td {
  padding: 12px 16px;
  color: var(--text);
  vertical-align: middle;
}

/* ── Formulários ───────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 179, 74, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7a99' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Page Layout ───────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.page-title {
  font-size: 1.6rem;
  font-weight: 800;
}

.page-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}

.main-content {
  padding: 32px 24px;
  max-width: 1400px;
}

/* ── Stats / KPI Cards ─────────────────────────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* ── Mapa ──────────────────────────────────────────────────── */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ── Mobile / App Funcionária ──────────────────────────────── */
@media (max-width: 768px) {
  body { font-size: 15px; }

  .btn { padding: 12px 20px; font-size: 0.95rem; }
  .btn-lg { padding: 16px 28px; font-size: 1rem; }

  .card { padding: 16px; border-radius: var(--radius-md); }

  .form-row { grid-template-columns: 1fr; }

  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Botão de saída — destaque mobile */
  .btn-saida,
  .btn-checkout {
    background: #e53e3e;
    color: #fff;
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 18px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.35);
  }

  /* Botão de entrada */
  .btn-entrada,
  .btn-checkin {
    background: var(--green);
    color: #fff;
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 18px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(45, 179, 74, 0.35);
  }
}

/* ── Progress Bar ──────────────────────────────────────────── */
.progress {
  height: 6px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--green);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-success { background: var(--green-bg); color: var(--green-dark); border-left: 3px solid var(--green); }
.alert-warning { background: #fff3e0; color: #c67c00; border-left: 3px solid #f6ad55; }
.alert-danger   { background: #fef0f0; color: #c53030; border-left: 3px solid #fc8181; }
.alert-info     { background: var(--blue-bg); color: #1a7aaa; border-left: 3px solid var(--blue); }

/* ── Utilitários ───────────────────────────────────────────── */
.text-navy   { color: var(--navy); }
.text-green  { color: var(--green); }
.text-muted  { color: var(--muted); }
.text-danger { color: #e53e3e; }

.bg-navy     { background: var(--navy); }
.bg-green    { background: var(--green); }
.bg-offwhite { background: var(--off-white); }

.font-title  { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-body   { font-family: 'Nunito', sans-serif; }

.rounded-sm  { border-radius: var(--radius-sm); }
.rounded-md  { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-lg); }

.shadow-sm   { box-shadow: var(--shadow-sm); }
.shadow-md   { box-shadow: var(--shadow-md); }

/* ── Login Hero ─────────────────────────────────────────────── */
.login-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(13, 29, 77, 0.3);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.login-card__header {
  padding: 32px 24px 16px;
  background: #fff;
}

.login-logo {
  height: 56px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}

.login-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}

.login-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  justify-content: center;
  gap: 6px;
  padding: 0 24px;
}

.login-tab {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  padding: 14px 0;
  text-align: center;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
}

.login-tab.active {
  color: var(--navy);
  border-color: var(--green);
}

.login-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.login-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 179, 74, 0.15);
  outline: none;
}

.login-error {
  color: #e53e3e;
  font-size: 0.85rem;
}

.login-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px;
}

.login-footer {
  border-top: 1px solid var(--border-light);
  background: var(--off-white);
  padding: 16px;
  text-align: center;
}

.login-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.login-link:hover {
  color: var(--navy-light);
}
