/*login.css
AI Heavy*/

/* ── Reset / base ───────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: #0F1117;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.85);
  padding: 1.5rem;
}

/* ── Subtle grid texture on the page background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Login card ─────────────────────────────────── */
.login-card {
  position: relative;
  z-index: 1;
  background: #1A1D27;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 400px;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.4);
}

/* ── Header: logo + title ───────────────────────── */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.header img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #252836;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header h1 {
  font-size: 1.35rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

.header p.subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.1rem;
}

/* ── Form ───────────────────────────────────────── */
#login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-row input {
  background: #252836;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}

.form-row input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-row input:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.form-row input:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

/* ── Submit button ──────────────────────────────── */
button[type="submit"] {
  margin-top: 0.5rem;
  background: #7C3AED;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
  width: 100%;
  letter-spacing: 0.01em;
}

button[type="submit"]:hover {
  background: #6d28d9;
}

button[type="submit"]:active {
  transform: scale(0.985);
}

/* ── Sign-up CTA ────────────────────────────────── */
.signup-cta {
  margin-top: 0.25rem;
  text-align: center;
}

.signup-cta p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.signup-cta a {
  color: #A78BFA;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.signup-cta a:hover {
  color: #c4b5fd;
}

/* ── Divider above signup ───────────────────────── */
.form-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0.5rem 0 0;
}

/* ── Error message ──────────────────────────────── */
.error-message {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
}

.error-message p {
  font-size: 0.82rem;
  color: #fca5a5;
  line-height: 1.4;
}

.hidden {
  display: none;
}