/* ==========================================================================
   Univa — static HTML build. Exact port of src/app/index.css (global reset)
   + src/modules/auth/LoginPage.css (shared by every auth page in the real
   app). Values are copied verbatim — do not "improve" them here without
   also updating the React source, or the two will drift again.
   ========================================================================== */

:root {
  color-scheme: light dark;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  accent-color: #7c3aed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fafaf9;
}

button,
a,
input,
select,
textarea {
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    opacity 0.15s ease, transform 0.1s ease;
}

:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

/* ---------------------------------------------------------- LoginPage.css */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafaf9;
  padding: 2rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 450px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(12, 10, 9, 0.08);
  padding: 2.5rem 2.25rem 2rem;
}

.auth-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  margin: 0 auto 1.25rem;
}

.login-title {
  margin: 0;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1c1917;
}

.login-subtitle {
  margin: 0.35rem 0 1.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: #78716c;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1c1917;
}

.required {
  color: #ef4444;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  display: flex;
  color: #a8a29e;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.5rem;
  font-size: 0.9rem;
  border: 1px solid #d6d3d1;
  border-radius: 14px;
  color: #1c1917;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease;
}

.input-wrap input:disabled {
  background: #f5f5f4;
  color: #57534e;
  cursor: not-allowed;
}

.input-wrap input::placeholder {
  color: #a8a29e;
}

.input-wrap input:focus {
  border-color: #8b5cf6;
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: #a8a29e;
}

.form-error {
  margin: -0.5rem 0 1.25rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
}

.form-notice {
  margin: -0.5rem 0 1.25rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
}

.demo-users-note {
  margin: 0 0 1.25rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  color: #6d28d9;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  text-align: center;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: #44403c;
  cursor: pointer;
}

.checkbox-label input {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.link {
  font-size: 0.85rem;
  color: #8b5cf6;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.login-button {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: #8b5cf6;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-button:hover {
  background: #6d28d9;
}

.login-button:disabled {
  background: #a8a29e;
  cursor: not-allowed;
}

.login-button:disabled:hover {
  background: #a8a29e;
}

.divider {
  height: 1px;
  background: #e7e5e4;
  margin: 1.5rem 0 1.25rem;
}

.signup-row {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #44403c;
}

.login-footer {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: #a8a29e;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #1c1917;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(12, 10, 9, 0.15);
  font-size: 0.85rem;
  z-index: 200;
}
