﻿/* =========================================================
   Login System — style.css
   Matches the Manchester Digital / Gradrecharge design
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(135deg, #eef2f9 0%, #f4f7fc 60%, #e8eef8 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #1a1d23;
}

/* ── Top Nav / Header ─────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header .logo-icon {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1d23;
  letter-spacing: -1px;
}

.site-header .logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1d23;
}

/* ── Page Centre ──────────────────────────────────────── */
.page-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

/* ── Card ─────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 48px 56px;
  width: 100%;
  max-width: 540px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.05),
    0 12px 40px rgba(0, 0, 0, 0.08);
}

.card h1 {
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
  color: #1a1d23;
  margin-bottom: 28px;
}

/* ── Form Groups ──────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a4f5e;
  letter-spacing: 0.01em;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dde2ef;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a1d23;
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
}

.form-group input::placeholder {
  color: #a0a8bc;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  text-decoration: none;
}

/* Primary — blue (like the Guest button) */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Secondary — outlined (like the Admin button) */
.btn-secondary {
  background: #ffffff;
  color: #1a1d23;
  border: 1.5px solid #dde2ef;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: #f4f7fc;
  border-color: #c4cbde;
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ── Divider ──────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #9aa0b4;
  font-size: 0.8rem;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4e9f2;
}

/* ── Helper Text / Links ──────────────────────────────── */
.helper-text {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 20px;
}

.helper-text a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.helper-text a:hover {
  text-decoration: underline;
}

/* ── Alert / Error Messages ───────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
  .card {
    padding: 32px 24px;
  }

  .site-header {
    padding: 14px 20px;
  }
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    background-color: #161b22;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: #30363d;
}