.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.2rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 80%, #000 100%);
  border-radius: 22px;
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-soft);
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 600;
}

.auth-switch {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.auth-switch button {
  border: none;
  background: none;
  color: var(--color-primary);
  font-size: 0.8rem;
  cursor: pointer;
}

.auth-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

/* Theme Toggle Styles */
.theme-toggle-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

.theme-switch-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.theme-switch {
  display: none;
}

.slider {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  background-color: #334155;
  border-radius: 24px;
  transition: .4s;
  cursor: pointer;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

.theme-switch:checked + .slider {
  background-color: #60a5fa;
}

.theme-switch:checked + .slider:before {
  transform: translateX(24px);
}

/* Light theme overrides for the toggle */
:root[data-theme="light"] .slider {
  background-color: #cbd5e1;
}

:root[data-theme="light"] .slider:before {
  background-color: #f8fafc;
}

:root[data-theme="light"] .theme-switch:checked + .slider {
  background-color: #93c5fd;
}

.auth-hint {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.auth-submit {
  margin-left: 0.8rem;
}

.transactions-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.8rem;
}

.transactions-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.transactions-list {
  margin-top: 0.6rem;
  overflow-x: auto;
}

.assets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 600px) {
  .transactions-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

/* Light mode overrides */
:root[data-theme="light"] .auth-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  border-color: #cbd5e1;
}
