:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --accent: #0b5fff;
  --muted: #6b7280;
  --danger: #e11d48;
  font-family: Inter, system-ui, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #151524, #1f1f35);
  color: #111827;
  padding: 24px;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #ffffff;
  color: #111827;
  border: 1px solid #e6e9ef;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: rgba(0, 127, 98, 0.5);
}

.toast-error {
  border-color: rgba(225, 29, 72, 0.6);
}

.toast-warn {
  border-color: rgba(245, 158, 11, 0.6);
}

.toast-info {
  border-color: rgba(11, 95, 255, 0.5);
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  padding: 28px;
  box-sizing: border-box;
}

h1 {
  margin: 0 0 8px 0;
  font-size: 20px;
  letter-spacing: -0.2px;
}

p.lead {
  margin: 0 0 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.field {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #374151;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
  transition: box-shadow 0.12s, border-color 0.12s;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.08);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.btn:active {
  transform: translateY(1px);
}

.link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.password-row {
  position: relative;
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input[type="password"],
.password-container input[type="text"] {
  padding-right: 80px;
  /* adjust if needed for button width */
  width: 100%;
  box-sizing: border-box;
}

.error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
}

@media (max-width: 420px) {
  body {
    padding: 12px;
  }

  .card {
    padding: 18px;
  }
}

.background-logo {
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 100px;
  /* adjust size */
  height: auto;
  opacity: 0.9;
  /* optional for subtle look */
}
