/* ── Page body (auth pages) ─────────────────────── */
body {
  font-family: var(--rs-font);
  background-color: var(--rs-bg-page);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Auth card ──────────────────────────────────── */
.auth-card {
  width: 385px;
  max-width: calc(100vw - 40px);
  padding: 30px;
  padding-top: 10px;
  background-color: var(--rs-bg-card);
  border: 1px solid var(--rs-border-card);
  border-radius: var(--rs-radius-card);
  text-align: center;
}

/* ── Input fields ───────────────────────────────── */
.input-field {
  width: calc(100% - 1.5rem);
  padding: 14px 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--rs-text);
  background-color: var(--rs-bg-input);
  border: 1px solid var(--rs-bg-input);
  border-radius: 0.25rem;
}

.input-field:focus {
  color: var(--rs-text);
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-field[readonly] {
  cursor: not-allowed;
  opacity: 0.7;
}

/* ── Primary button ─────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--rs-btn-bg);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--rs-btn-hover);
}

/* ── Toast notifications ────────────────────────── */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--rs-error);
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  font-size: 0.9rem;
  white-space: nowrap;
  animation: fadeIn 0.3s ease-out;
}

.toast.toast-success { background-color: var(--rs-success); }
.toast.fade-out      { animation: fadeOut 0.5s ease-in forwards; }

/* ── Inline alerts ──────────────────────────────── */
.alert-inline {
  display: none;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 5px;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 12px;
  animation: slideDown 0.2s ease-out;
  position: relative;
}

.alert-inline.alert-error {
  background-color: #fff2f2;
  border: 1px solid #f5c6c6;
  color: #8b1a1a;
}

.alert-inline .alert-dismiss {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
  padding: 0;
  width: auto;
}

.alert-inline .alert-dismiss:hover { opacity: 1; }

/* ── Copyright strip ────────────────────────────── */
.copyright {
  margin-top: 8px;
  width: 445px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--rs-text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.copyright a         { color: var(--rs-text-muted); text-decoration: none; }
.copyright a:hover   { text-decoration: underline; }
.copyright > div a   { display: block; text-align: right; }
.copyright img       { margin-top: 4px; height: 40px; display: block; margin-left: auto; }

/* ── Simple text footer ─────────────────────────── */
.auth-footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #666;
}

/* ── Animations ─────────────────────────────────── */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
