/* ============================================================
   INSYT — LOGIN / AUTH PAGES
   Inherits the shared design system (public/css/design-system.css).
   Only page-specific layout & auth component styles live here.
   ============================================================ */

/* ─── AUTH LAYOUT ─────────────────────────────────────────── */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
}

.login-container {
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 40px 24px;
}

.login-container h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.login-container > p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ─── AUTH NAV ────────────────────────────────────────────── */
nav {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h2,
nav h4 {
  color: var(--color-yellow);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

nav ul {
  display: none;
  gap: 1rem;
}

nav ul li a {
  color: var(--color-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast);
}

nav ul li a:hover {
  color: var(--color-yellow);
}

/* ─── HEADINGS ────────────────────────────────────────────── */
h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--color-white);
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
  text-align: center;
}

/* ─── FORM ────────────────────────────────────────────────── */
form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  display: flex;
  margin: 0 auto;
  flex-direction: column;
  animation: slideIn 0.6s var(--ease-out);
  text-align: left;
}

form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted-strong);
  margin-bottom: 0.5rem;
}

form input {
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

form input:focus {
  border-color: var(--color-yellow);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.12);
}

form button,
.login-button {
  background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-soft) 100%);
  color: var(--color-black);
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 20px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

form button:hover,
.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 214, 0, 0.3);
}

/* ─── LINKS ───────────────────────────────────────────────── */
p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-align: center;
}

p a {
  color: var(--color-yellow);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition-fast);
}

p a:hover {
  color: var(--color-yellow-soft);
}

/* ─── MESSAGES ────────────────────────────────────────────── */
.error-message,
.success-message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid;
}

.error-message {
  background: rgba(255, 92, 92, 0.12);
  border-color: rgba(255, 92, 92, 0.4);
  color: var(--color-danger);
}

.success-message {
  background: rgba(53, 208, 127, 0.12);
  border-color: rgba(53, 208, 127, 0.4);
  color: var(--color-success);
}

/* ─── AUTH FOOTER ─────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--color-muted);
}

.footer-title {
  font-size: 1.4rem;
  color: var(--color-yellow);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.footer p {
  color: var(--color-muted);
  margin: 0.5rem 0 0;
}

/* ─── EXTRA LINKS ─────────────────────────────────────────── */
.extra-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.extra-links a {
  color: var(--color-yellow);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.extra-links a:hover {
  color: var(--color-yellow-soft);
}

/* ─── BOTTOM NAV (auth minimal) ───────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
}

.bottom-nav a {
  text-decoration: none;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6rem;
  gap: 4px;
  transition: color var(--transition-fast);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bottom-nav a:hover,
.bottom-nav a.active {
  color: var(--color-yellow);
}

.bottom-nav i {
  font-size: 1.4rem;
  color: var(--color-yellow);
}

/* ─── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .login-container {
    padding: 32px 16px;
  }

  form {
    padding: 1.5rem;
  }
}
