/* ==========================================================
   SHOFAR CAMPAIGN MANAGER
   Modern SaaS Theme
   ========================================================== */

:root {
  /* Brand */
  --primary: #FF571F;
  --primary-dark: #E24B16;
  --primary-light: #FFF2EC;
  --secondary: #8F8F8F;

  /* Neutrals */
  --background: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #FBFCFD;
  --text: #2C3138;
  --text-light: #6B7280;
  --border: #E7EBF0;

  /* Status */
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Design */
  --radius: 14px;
  --radius-small: 8px;
  --shadow-small: 0 1px 3px rgba(0, 0, 0, .05);
  --shadow: 0 6px 18px rgba(20, 20, 20, .06), 0 18px 40px rgba(20, 20, 20, .04);
  --shadow-hover: 0 10px 26px rgba(20, 20, 20, .08), 0 24px 60px rgba(20, 20, 20, .08);
  --transition: 180ms ease;
}

/* ==========================================================
   RESET & BASE
   ========================================================== */

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff 0%, #F6F8FB 35%, #F6F8FB 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==========================================================
   TYPOGRAPHY & LINKS
   ========================================================== */

h1 {
  margin: 0 0 24px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

h2 {
  margin: 40px 0 18px;
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  color: var(--text-light);
  margin-top: 0;
}

label {
  display: block;
  margin-bottom: 8px;
  margin-top: 18px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.page-subtitle {
  margin-top: -10px;
  margin-bottom: 28px;
  color: var(--text-light);
}

/* ==========================================================
   LAYOUT & CONTAINER
   ========================================================== */

.container {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 24px;
  animation: fadeIn .25s ease;
}

section {
  margin-bottom: 40px;
}

section:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ==========================================================
   HELPERS & UTILITIES
   ========================================================== */

.hidden {
  display: none !important;
}

.error {
  background: #FFF1F1;
  color: #B42318;
  border-left: 4px solid var(--danger);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.hint {
  color: var(--text-light);
  font-size: .9rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================
   NAVIGATION
   ========================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 235, 240, .9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #ff7a4d);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-links a {
  color: var(--text-light);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
  transition: all .18s ease;
}

.navbar-links a:hover,
.navbar-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.navbar-links a:last-child {
  color: #C2410C;
}

.navbar-links a:last-child:hover {
  background: #FFF1EC;
}

.navbar-user {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--secondary);
  font-size: .78rem;
  margin-top: 2px;
}

/* ==========================================================
   CARDS
   ========================================================== */

.card,
.login-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(231, 235, 240, .85);
  border-radius: 18px;
  padding: 24px 36px 20px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #DDE3EA;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), #ff8d66);
  border-radius: 18px 0 0 18px;
  opacity: .95;
}

.card h2,
.card h3 {
  margin-top: 0;
  margin-bottom: 24px;
}

.card h2 {
  font-size: 1.35rem;
}

.card h3 {
  color: var(--text);
}

.card > *:first-child {
  margin-top: 0;
}

.card > *:last-child {
  margin-bottom: 0;
}

.card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* Stat Box */
.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* ==========================================================
   FORMS & INPUTS
   ========================================================== */

.campaign-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 32px 36px;
  align-items: start;
}

.campaign-form p,
.campaign-form button {
  grid-column: 1 / -1;
}

.campaign-form label {
  margin: 0 0 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.action-row {
  display: flex;
  justify-content: flex-end;
}

.campaign-form input:not([type="checkbox"]),
.campaign-form select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: .95rem;
  color: var(--text);
  transition: all .18s ease;
  appearance: none;
}

.campaign-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--secondary) 50%),
    linear-gradient(135deg, var(--secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.campaign-form input:hover,
.campaign-form select:hover {
  border-color: #CDD4DD;
}

.campaign-form input:focus,
.campaign-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 87, 31, .12);
}

/* File Pickers */
.campaign-form input[type=file] {
  padding: 16px;
  height: auto;
  background: var(--surface-2);
  border: 2px dashed var(--border);
  border-radius: 14px;
}

.campaign-form input[type=file]:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.campaign-form input[type=file]::file-selector-button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  margin-right: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s ease;
}

.campaign-form input[type=file]::file-selector-button:hover {
  background: var(--primary-dark);
}

/* Buttons */
.campaign-form button {
  justify-self: end;
  margin-top: 12px;
  min-width: 220px;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #FF6A37, var(--primary));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 87, 31, .28);
  transition: all .18s ease;
}

.campaign-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 87, 31, .35);
}

.campaign-form button:active {
  transform: none;
}

.danger-button {
  background: #fff;
  color: #C53030;
  border: 1px solid #F5C2C2;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s ease;
}

.danger-button:hover {
  background: #FDECEC;
}

/* Help text */
.campaign-form .hint {
  margin-top: -8px;
  margin-bottom: 8px;
  color: var(--secondary);
}

.campaign-form input[type="file"] + p.hint {
  margin-top: 12px;
}

#password-form .hint,
#reset-password-message {
  grid-column: 1 / -1;
  margin-top: -8px;
}

/* ==========================================================
   ADMIN CHECKBOXES (Full Block Selection State)
   ========================================================== */

/* Standard Checkbox Control */
.campaign-form input[type="checkbox"],
.admin-checkbox input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

/* Label Card Container */
label.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0;
  user-select: none;
}

label.admin-checkbox:hover {
  border-color: var(--primary);
  background: #FFF6F2;
}

/* Active Selected State: Entire Block Turns Orange */
label.admin-checkbox:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 87, 31, 0.25);
}

label.admin-checkbox:has(input:checked) input[type="checkbox"] {
  accent-color: #ffffff;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  transition: .2s ease;
  cursor: pointer;
}

.inline-check:hover {
  border-color: var(--primary);
  background: #FFF6F2;
}

/* ==========================================================
   ADMIN & USERS LAYOUT
   ========================================================== */

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 20px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Side-by-Side Add User / Reset Password Grid */
.admin-users-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 28px 0;
  align-items: start;
}

.admin-users-row > .card {
  margin-bottom: 0;
  width: 100%;
}

.admin-users-row .campaign-form {
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-users-row .campaign-form button {
  width: 100%;
  margin-top: 8px;
}

/* ==========================================================
   TABLES & BADGES
   ========================================================== */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 12px;
}

thead th {
  padding: 18px;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--secondary);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 18px;
  border-bottom: 1px solid #EEF2F6;
  color: var(--text);
  vertical-align: middle;
}

tbody tr {
  transition: background .18s ease, transform .18s ease;
}

tbody tr:hover {
  background: #FAFBFD;
}

tbody tr:last-child td {
  border-bottom: none;
}

td:nth-child(4),
td:nth-child(5),
th:nth-child(4),
th:nth-child(5) {
  text-align: center;
  width: 90px;
}

.table-actions {
  text-align: right;
  white-space: nowrap;
}

tbody:empty::after {
  content: "No records found.";
  display: block;
  text-align: center;
  color: var(--secondary);
  padding: 40px;
}

/* Status Badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status.running {
  background: #EEF4FF;
  color: #2563EB;
}
.status.running::before { background: #F59E0B; }

.status.complete,
.status.sent {
  background: #ECFDF3;
  color: #027A48;
}
.status.complete::before,
.status.sent::before { background: #22C55E; }

.status.failed {
  background: #FDECEC;
  color: #C53030;
}
.status.failed::before { background: #EF4444; }

.status.pending {
  background: #EEF2FF;
  color: #4338CA;
}
.status.pending::before { background: #6366F1; }

.status.skipped {
  background: #F3F4F6;
  color: #4B5563;
}
.status.skipped::before { background: #9CA3AF; }

.status.partial {
  background: #FFF6DB;
  color: #B7791F;
}
.status.partial::before { background: #F59E0B; }

/* Role Badges */
.role-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}

.role-badge.admin {
  background: #FFF3EC;
  color: var(--primary);
}

.role-badge.user {
  background: #F4F5F7;
  color: #666;
}

/* ==========================================================
   CAMPAIGN & PREVIEW LAYOUT
   ========================================================== */

.campaign-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px; 
}

.campaign-layout .card {
  margin-bottom: 0;
}

#preview-card {
  position: sticky;
  top: 24px;
  background: #E9EDF2;
}

/* Variable Fields */
#variable-fields-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.variable-field label {
  margin-top: 0;
  font-size: 0.85rem;
}

/* WhatsApp Message Preview Bubble */
.wa-bubble {
  max-width: 380px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-small);
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.45;
}

.wa-bubble-media img {
  width: 100%;
  display: block;
}

.wa-media-placeholder {
  background: var(--surface-2);
  border: 2px dashed var(--border);
  color: var(--text-light);
  text-align: center;
  padding: 40px 16px;
  font-size: 0.85rem;
}

.wa-bubble-header {
  padding: 14px 16px 0;
  font-weight: 700;
  color: var(--text);
}

.wa-bubble-body {
  padding: 14px 16px;
  white-space: pre-wrap;
  color: var(--text);
}

.wa-bubble-body strong { font-weight: 700; }
.wa-bubble-body em { font-style: italic; }
.wa-bubble-body s { text-decoration: line-through; }
.wa-bubble-body code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.9em;
}

.wa-bubble-footer {
  padding: 0 16px 14px;
  color: var(--text-light);
  font-size: 0.8rem;
}

.wa-bubble-buttons {
  border-top: 1px solid var(--border);
}

.wa-button-pill {
  padding: 12px 16px;
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.wa-button-pill:first-child {
  border-top: none;
}

a.wa-button-pill {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

a.wa-button-pill:hover {
  background: rgba(255, 87, 31, 0.06);
}

/* Progress & Campaign Summary */
#progress-wrap {
  position: relative;
  overflow: hidden;
}

#progress-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #ff8f69);
}

#progress-summary {
  margin: 22px 0 28px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
}

#progress-table tbody td { font-size: .92rem; }
#progress-table td:nth-child(2) { width: 170px; }
#progress-table td:nth-child(3) { color: var(--secondary); }

.campaign-summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.campaign-stats {
  display: flex;
  gap: 36px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

.stat-label {
  margin-top: 6px;
  color: var(--secondary);
  font-size: .85rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #ECEFF3;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #FF875C);
  transition: width .4s ease;
}

.campaign-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--secondary);
  font-size: .9rem;
}

/* Recent Campaigns: clickable rows */
#history-table tbody tr {
  cursor: pointer;
}

/* Campaign Detail Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, .45);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 24px;
  overflow-y: auto;
  z-index: 2000;
}

.modal-panel {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 720px;
  padding: 32px;
  animation: fadeIn .2s ease;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.modal-panel h2 {
  margin-top: 0;
}

#modal-recipients-table tbody td { font-size: .92rem; }
#modal-recipients-table td:nth-child(2) { width: 170px; }
#modal-recipients-table td:nth-child(3) { color: var(--secondary); }

/* ==========================================================
   LOGIN PAGE
   ========================================================== */

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px;
  background:
    radial-gradient(circle at top right, rgba(255, 87, 31, .08), transparent 35%),
    var(--background);
}

.login-container {
  width: 100%;
  max-width: 450px;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  text-align: center;
}

.brand-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 14px 35px rgba(255, 87, 31, .28);
}

.login-logo {
  display: block;
  width: 200px;
  max-width: 80%;
  height: auto;
  margin: 0 auto 26px;
  margin-bottom:20px;
}

.login-brand h1 { margin:0 ; font-size: 1.8rem; font-weight:700; line-height:1.25;}
.login-brand p { color: #6b7280;  margin: 5px 0 0; font-size: 1.1rem; text-align: center;}

.login-card {
  background: #fff;
  padding: 20px 36px 8px;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .08);
  border: 1px solid var(--border);
  max-width: 430px;
}

.login-card h2 { margin-bottom: 6px; }
.login-subtitle { color: var(--secondary); margin-bottom: 28px; }
.login-card button { width: 100%; margin-top: 24px; }

.login-error {
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: .92rem;
}

.login-footer {
  margin-top: 28px;
  text-align: center;
  color: var(--secondary);
  font-size: .9rem;
}

/* ==========================================================
   MEDIA QUERIES
   ========================================================== */

@media (max-width: 1000px) {
  .campaign-layout {
    grid-template-columns: 1fr;
  }
  #preview-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 14px;
  }

  .navbar-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .navbar-user {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    width: 100%;
    font-size: .9rem;
  }

  .grid.two,
  .grid.three,
  .admin-grid,
  .admin-users-row {
    grid-template-columns: 1fr;
  }

  .campaign-form {
    grid-template-columns: 1fr;
  }

  .campaign-form button {
    width: 100%;
    justify-self: stretch;
  }
}
/* Password visibility toggle */
.password-field-wrap {
  position: relative;
}

.password-field-wrap input {
  padding-right: 70px !important;
}

.password-field-wrap .password-toggle-btn {
  all: unset;
  box-sizing: border-box;
  position: absolute !important;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: auto !important;
  grid-column: auto !important;
  margin: 0 !important;
  color: var(--text-light);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  background: none;
  border:none;
  color: #6b7280;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.password-field-wrap .password-toggle-btn:hover {
  background: var(--surface-2);
  color: color: #111827;
}}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.login-card input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 1rem;
    font-family: inherit;

    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 10px;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.login-card input::placeholder {
    color: #9ca3af;
}

.login-card input:hover {
    background: #fff;
    border-color: #9ca3af;
}

.login-card input:focus {
    outline: none;
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.btn-primary {
    width: 100%;
    height: 52px;
    background: #2563eb
    color: white;
    border: none;
    border-radius: 10px;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #ff571f;
    box-shadow: 0 8px 20px rgba(37,99,235,.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.login-header {

    text-align: left;
    margin-bottom: 4px;
}

.login-header h2 {

    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.login-header p {

    margin: 0;
    color: #6b7280;
    line-height: 1;
}
