/* ==========================================================
   PASSWORD MANAGER — CSS
   Theme: Dark + Glassmorphism + Neumorphism
   Layout: Responsive — mobile single-column → desktop two-column
   Font: Inter (Google Fonts)
   ========================================================== */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette */
  --bg-body: #0b0e17;
  --bg-app: #12162a;
  --bg-glass: rgba(22, 28, 54, 0.65);
  --bg-glass-hover: rgba(30, 38, 72, 0.75);
  --bg-input: rgba(15, 19, 38, 0.7);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(99, 140, 255, 0.5);

  /* Accent */
  --accent: #638cff;
  --accent-glow: rgba(99, 140, 255, 0.35);
  --accent-dark: #4a6fd9;
  --accent-soft: rgba(99, 140, 255, 0.12);

  /* Danger */
  --danger: #ff5c72;
  --danger-glow: rgba(255, 92, 114, 0.30);

  /* Success */
  --success: #3cdf8e;
  --success-glow: rgba(60, 223, 142, 0.30);

  /* Warning */
  --warning: #ffc044;

  /* Text */
  --text-primary: #e8ecf4;
  --text-secondary: #8892a8;
  --text-muted: #555f75;

  /* Shadows (neumorphism) */
  --shadow-raised: 4px 4px 12px rgba(0, 0, 0, 0.45), -2px -2px 8px rgba(255, 255, 255, 0.03);
  --shadow-inset: inset 3px 3px 8px rgba(0, 0, 0, 0.50), inset -2px -2px 6px rgba(255, 255, 255, 0.03);

  /* Misc */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px 24px;
  /* subtle gradient background */
  background-image:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(99, 140, 255, 0.10), transparent),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(155, 90, 255, 0.08), transparent);
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- APP WRAPPER ---------- */
.app-wrapper {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 80px;
  /* space for bottom nav */
  animation: fadeUp 0.6s ease both;
}

/* ---------- GLASS CARD UTILITY ---------- */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: var(--shadow-raised);
  transition: transform var(--transition), box-shadow var(--transition);
}

/* ======================================
   HEADER
   ====================================== */
.app-header {
  text-align: center;
  padding: 28px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #9b5aff);
  border-radius: 14px;
  box-shadow: 0 4px 18px var(--accent-glow);
  color: #fff;
}

.logo-icon svg {
  width: 28px;
  height: 28px;
}

.logo-text h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 500;
}

/* Connection status */
.connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 5px 12px;
  border-radius: 100px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.status-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 6px var(--danger-glow);
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 6px var(--success-glow);
  animation: pulse 2s ease infinite;
}

.status-dot.loading {
  background: var(--warning);
  box-shadow: 0 0 6px rgba(255, 192, 68, 0.3);
}

/* ======================================
   MAIN — responsive grid
   ====================================== */
.app-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* Desktop: two columns */
@media (min-width: 768px) {
  .app-main {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .column-left {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

@media (min-width: 1024px) {
  .app-main {
    grid-template-columns: 420px 1fr;
  }
}

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

/* ======================================
   SEARCH SECTION
   ====================================== */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-inset);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-inset), 0 0 0 3px var(--accent-soft);
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* ======================================
   FORM SECTION
   ====================================== */
.form-section {
  padding: 22px 20px 18px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), #9b5aff);
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* Input groups */
.input-group {
  margin-bottom: 14px;
}

.input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-inset);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-inset), 0 0 0 3px var(--accent-soft);
}

.field-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 12px 12px 38px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
}

/* Toggle eye in password field */
.toggle-visibility {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: grid;
  place-items: center;
  transition: color var(--transition);
}

.toggle-visibility:hover {
  color: var(--accent);
}

.toggle-visibility svg {
  width: 18px;
  height: 18px;
}

/* Password strength bar */
.password-strength {
  margin-bottom: 16px;
}

.strength-bar {
  height: 4px;
  background: var(--bg-input);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 4px;
}

#strength-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 100px;
  transition: width 0.4s ease, background 0.4s ease;
}

.password-strength small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Helper text */
.helper-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.55;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.helper-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ======================================
   BUTTONS
   ====================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8065ff);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px var(--accent-glow), 0 0 0 3px var(--accent-soft);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  margin-top: 8px;
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
}

/* Ripple effect on click */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255, 255, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn.ripple::after {
  opacity: 1;
  animation: rippleFade 0.55s ease forwards;
}

/* Icon button (card actions) */
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.15s ease, box-shadow var(--transition);
  position: relative;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.icon-btn:active {
  transform: scale(0.90);
}

.icon-btn.action-delete:hover {
  background: rgba(255, 92, 114, 0.12);
  color: var(--danger);
  box-shadow: 0 4px 12px var(--danger-glow);
}

/* Tooltip */
.icon-btn[title]::before {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-app);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.icon-btn[title]:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ======================================
   VAULT HEADER
   ====================================== */
.vault-header {
  padding: 20px;
}

.vault-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vault-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vault-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #9b5aff);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
  flex-shrink: 0;
}

.vault-icon svg {
  width: 22px;
  height: 22px;
}

.vault-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.vault-subtitle {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ======================================
   SAVED PASSWORDS — card list
   ====================================== */
.passwords-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual card */
.password-card {
  padding: 16px;
  animation: fadeUp 0.35s ease both;
}

.password-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-raised), 0 8px 28px rgba(0, 0, 0, 0.25);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--accent);
  flex-shrink: 0;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-website {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-username {
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-password-row {
  background: var(--bg-input);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  margin-bottom: 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  transition: color var(--transition);
}

.card-password-row .revealed {
  color: var(--success);
  letter-spacing: 0.5px;
}

.card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ======================================
   EMPTY STATE
   ====================================== */
.empty-state {
  animation: fadeUp 0.5s ease both;
}

.empty-state-inner {
  text-align: center;
  padding: 44px 24px;
}

.empty-icon {
  width: 52px;
  height: 52px;
  color: var(--text-muted);
  margin: 0 auto 16px;
  opacity: 0.45;
}

.empty-state h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}

/* ======================================
   BOTTOM NAVIGATION
   ====================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: space-around;
  padding: 10px 8px 14px;
  background: rgba(12, 14, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  z-index: 50;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 14px;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
}

.nav-btn svg {
  width: 22px;
  height: 22px;
}

.nav-btn.active,
.nav-btn:hover {
  color: var(--accent);
}

.nav-btn.active {
  background: var(--accent-soft);
}

/* ======================================
   TOAST
   ====================================== */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-app);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ======================================
   MODAL (Password Generator)
   ====================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 90%;
  max-width: 400px;
  padding: 24px;
  animation: scaleUp 0.35s ease both;
}

.modal-overlay:not(.open) .modal {
  animation: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--bg-input);
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: rgba(255, 92, 114, 0.12);
  color: var(--danger);
}

.generated-pw-area {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.generated-pw {
  flex: 1;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.92rem;
  color: var(--success);
  word-break: break-all;
}

.slider-group {
  margin-bottom: 14px;
}

.slider-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.checkbox-group label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* ======================================
   ANIMATIONS
   ====================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.88);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rippleFade {
  to {
    opacity: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

/* Staggered card entrance */
.password-card:nth-child(1) {
  animation-delay: 0.00s;
}

.password-card:nth-child(2) {
  animation-delay: 0.06s;
}

.password-card:nth-child(3) {
  animation-delay: 0.12s;
}

.password-card:nth-child(4) {
  animation-delay: 0.18s;
}

.password-card:nth-child(5) {
  animation-delay: 0.24s;
}

.password-card:nth-child(6) {
  animation-delay: 0.30s;
}

.password-card:nth-child(7) {
  animation-delay: 0.36s;
}

.password-card:nth-child(8) {
  animation-delay: 0.42s;
}

.password-card:nth-child(9) {
  animation-delay: 0.48s;
}

.password-card:nth-child(10) {
  animation-delay: 0.54s;
}

/* ======================================
   EDIT MODE — inline edit styling
   ====================================== */
.password-card.editing .card-info input {
  background: var(--bg-input);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  width: 100%;
  margin-bottom: 4px;
}

.password-card.editing .card-password-row input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--success);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  width: 100%;
  letter-spacing: 0.5px;
}

/* Confirm / Cancel in edit mode */
.edit-actions {
  display: flex;
  gap: 6px;
}

.edit-actions .icon-btn.confirm {
  background: rgba(60, 223, 142, 0.12);
  color: var(--success);
}

.edit-actions .icon-btn.confirm:hover {
  box-shadow: 0 4px 12px var(--success-glow);
}

.edit-actions .icon-btn.cancel:hover {
  background: rgba(255, 92, 114, 0.12);
  color: var(--danger);
  box-shadow: 0 4px 12px var(--danger-glow);
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (min-width: 768px) {
  body {
    padding: 32px 28px;
  }

  .app-header {
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .app-header {
    flex-direction: column;
  }
}
/* ==========================================================
   LOCK SCREEN + AUTH (added)
   ========================================================== */
[hidden] { display: none !important; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.locked .app-wrapper { display: none; }
body:not(.locked) .lock-screen { display: none; }

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-body);
  overflow-y: auto;
}

.lock-card {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px;
  text-align: center;
}

.lock-card form { text-align: left; }

.lock-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.lock-logo svg { width: 28px; height: 28px; }

.lock-title { font-size: 1.4rem; font-weight: 700; }
.lock-sub   { color: var(--text-secondary); margin: 4px 0 20px; }

.lock-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  box-shadow: var(--shadow-inset);
}
.lock-tab {
  padding: 9px 0;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lock-tab.active { background: var(--accent-soft); color: var(--accent); }
.lock-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lock-warning,
.lock-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.45;
}
.lock-warning { background: rgba(255, 192, 68, 0.10); color: var(--warning); }
.lock-error   { background: rgba(255, 92, 114, 0.12); color: var(--danger); }

#auth-submit:disabled { opacity: 0.6; cursor: progress; }
