:root {
  --primary: #1E3A8A;
  --primary-light: #3B82F6;
  --primary-dark: #1E40AF;
  --foreground: #111827;
  --foreground-light: #374151;
  --background: #FFFFFF;
  --light-grey: #F9FAFB;
  --grey: #E5E7EB;
  --dark-grey: #6B7280;
  --error: #DC2626;
  --success: #059669;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: hidden; /* ✅ NO SCROLL ON DESKTOP */
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
  height: 100%;
  max-width: 100rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #111827 0%, #1E3A8A 100%);
  background-clip: text;              /* ✅ standard */
  -webkit-background-clip: text;      /* ✅ webkit */
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}


.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

/* ================= LOGIN PAGE ================= */
.login-page {
  position: relative;
  height: calc(100vh - 72px); /* ✅ FIX */
  margin-top: 72px;           /* ✅ FIX */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

/* Background */
.login-background {
   position: absolute;
    inset: 0;
    background-image: url('https://static.wixstatic.com/media/3d4c2a_2f337be5b7da445db58a7946af6d1fe4~mv2.jpg');
    background-size: auto 75%;
    background-position: 0 0;
    background-attachment: fixed;
    background-repeat: repeat-x;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 10s ease infinite;
}
.parallax-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.ev-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(30, 58, 138, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 138, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 2;
  pointer-events: none;
}

/* ================= LOGIN CARD ================= */
.login-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.5rem;
  padding: 2.75rem 2.25rem;
  border: 1px solid var(--grey);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo h1 {
  font-size: 2.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #111827 0%, #1E3A8A 100%);
  background-clip: text;              /* ✅ standard */
  -webkit-background-clip: text;      /* ✅ webkit */
  -webkit-text-fill-color: transparent;
}

.login-logo p {
  font-size: 1rem;
  color: var(--dark-grey);
}

/* ================= FORM ================= */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  border: 1px solid #D1D5DB;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ================= BUTTON ================= */
.btn {
  width: 100%;
  padding: 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #111827 0%, #1E3A8A 100%);
  color: white;
}

/* =====================================================
   FLOATING STATUS / ALERT BANNER (COLOR FIX)
===================================================== */

#status {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;

  width: calc(100% - 2rem);
  max-width: 520px;

  padding: 0.9rem 1.25rem;
  border-radius: 14px;

  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;

  display: none;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
}

/* ---------- ERROR ---------- */
#status.error {
  display: block;
  background: linear-gradient(
    135deg,
    #FEE2E2 0%,
    #FECACA 100%
  );
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* ---------- SUCCESS ---------- */
#status.success {
  display: block;
  background: linear-gradient(
    135deg,
    #DCFCE7 0%,
    #BBF7D0 100%
  );
  color: #065F46;
  border: 1px solid #86EFAC;
}

/* ---------- INFO ---------- */
#status.info {
  display: block;
  background: linear-gradient(
    135deg,
    #E0F2FE 0%,
    #BAE6FD 100%
  );
  color: #075985;
  border: 1px solid #7DD3FC;
}

/* ---------- ANIMATION ---------- */
#status {
  animation: statusDrop 0.35s ease-out;
}

@keyframes statusDrop {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 480px) {
  #status {
    top: 78px;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}



/* ================= MODAL ================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.modal-content {
  background: white;
  border-radius: 1.5rem;
  max-width: 500px;
  width: 100%;
  padding: 2rem;
}

/* ================= MOBILE & TABLET ================= */
@media (max-width: 768px) {
  body {
    overflow-y: auto; /* ✅ ALLOW SCROLL ON MOBILE */
  }

  .login-page {
    height: auto;
    min-height: calc(100vh - 72px);
  }

  .login-card {
    padding: 2rem 1.5rem;
  }

  .login-logo h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* =====================================================
   MOBILE LOGIN PAGE FIX (NO FUNCTIONALITY CHANGE)
===================================================== */

/* Small phones (iPhone SE, Android small) */
@media (max-width: 480px) {

  body {
    overflow-y: auto;
  }

  /* Header */
  .header {
    height: auto;
    padding: 0.75rem 0;
  }

  .header-content {
    flex-direction: column;
    gap: 0.4rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .back-button {
    font-size: 0.8rem;
  }

  /* Login page layout */
  .login-page {
    margin-top: 0;
    min-height: 100vh;
    padding: 5.5rem 1rem 2rem; /* ⬅️ KEY FIX */
    align-items: flex-start;
  }

  /* Card */
  .login-card {
    width: 100%;
    max-width: 100%;
    padding: 1.75rem 1.25rem;
    border-radius: 1.25rem;
  }

  /* Logo inside card */
  .login-logo {
    margin-bottom: 1.5rem;
  }

  .login-logo h1 {
    font-size: 1.9rem;
  }

  .login-logo p {
    font-size: 0.95rem;
  }

  /* Status message */
  #status {
    font-size: 0.85rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
  }

  /* Inputs */
  .form-input {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  /* Button */
  .btn-primary {
    padding: 0.85rem;
    font-size: 0.95rem;
  }
}

/* Medium devices (iPhone Pro Max, Android large, small tablets) */
@media (min-width: 481px) and (max-width: 768px) {

  body {
    overflow-y: auto;
  }

  .login-page {
    padding: 6rem 1.5rem 2.5rem;
    align-items: flex-start;
  }

  .login-card {
    max-width: 420px;
    padding: 2.25rem 1.75rem;
  }

  .login-logo h1 {
    font-size: 2.1rem;
  }
}
/* =====================================================
   HEADER FIX: SAME LAYOUT ON DESKTOP & MOBILE
===================================================== */

/* Force header to stay horizontal on all screen sizes */
.header-content {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* Left: Back button */
.back-button {
  order: 2;
  white-space: nowrap;
}

/* Right: Logo */
.logo {
  order: 1;
  white-space: nowrap;
}

/* Mobile spacing refinement */
@media (max-width: 480px) {
  .header {
    padding: 0.75rem 0;
  }

  .header-content {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .back-button {
    font-size: 0.8rem;
  }
}
