/* ============================================================
   AUTH.CSS — login + dashboard
   ============================================================ */

[hidden] { display: none !important; }

/* ---------- Shared page (dashboard default) ---------- */
.auth-page {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, var(--accent-glow) 0%, transparent 55%);
  opacity: 0.18;
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px 28px;
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, 0.85),
    0 0 80px -30px var(--accent-glow);
}

.auth-form { display: flex; flex-direction: column; }

/* ---------- Error ---------- */
.auth-error {
  padding: 10px 12px;
  background: rgba(248, 81, 73, 0.08);
  border: 1px solid rgba(248, 81, 73, 0.25);
  border-radius: 6px;
  color: #f85149;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
  display: none;
}
.auth-error.visible { display: block; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-body {
  background: #0d1117;
  min-height: 100vh;
}

.login-bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/log_back.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0d1117;
}

.login-bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 85% 75% at center,
    transparent 0%,
    rgba(13, 17, 23, 0.20) 60%,
    rgba(13, 17, 23, 0.65) 100%
  );
  pointer-events: none;
}

.login-page {
  position: relative;
  z-index: 3;
  background: transparent !important;
  min-height: 100vh;
  padding: 80px 24px 60px;
}
.login-page::before { display: none; }

/* ---------- Scroll hint ---------- */
.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  animation: scrollBob 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%      { transform: translateX(-50%) translateY(5px); opacity: 0.85; }
}

/* ---------- Login card (white) ---------- */
.login-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  max-width: 380px;
  padding: 30px 30px 22px;
  border-radius: 10px;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 90px -30px var(--accent-glow) !important;
}

/* ---------- Title ---------- */
.login-title {
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f2937;
  margin: 0 0 8px;
  text-align: center;
}

/* ---------- Terms ---------- */
.login-terms {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 22px;
  text-align: center;
}
.login-terms a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.login-terms a:hover { text-decoration: underline; }

/* ---------- Fields (placeholders inside box) ---------- */
.login-field { margin-bottom: 12px; }

.login-field input {
  width: 100%;
  padding: 11px 12px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #1f2937;
  font-family: var(--font);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.login-field input::placeholder {
  color: #9ca3af;
  font-weight: 400;
  opacity: 1;
}
.login-field input:focus::placeholder { color: #c7cad1; }

/* ---------- ENTER button (square, blue, centered) ---------- */
/* ---------- ENTER / CREATE ACCOUNT button ---------- */
.login-go {
  display: block;
  width: 130px;
  height: 52px;
  padding: 0;
  margin: 14px auto 18px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.login-go:hover:not(:disabled)  { background: #1d4ed8; }
.login-go:active:not(:disabled) { transform: translateY(1px); }
.login-go:disabled { opacity: 0.6; cursor: not-allowed; }
.login-go:hover:not(:disabled)  { background: #1d4ed8; }
.login-go:active:not(:disabled) { transform: translateY(1px); }
.login-go:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Remember / forgot row ---------- */
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}
.remember-label input[type="checkbox"] {
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.forgot-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

/* ---------- Footer link ---------- */
.login-footer-link {
  text-align: center;
  padding: 12px 0 0;
  border-top: 1px solid #e5e7eb;
  margin-bottom: 12px;
}
.login-footer-link a {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.login-footer-link a:hover { text-decoration: underline; }

/* ---------- Employee link ---------- */
.login-employee-link {
  text-align: center;
  padding-top: 4px;
}
.login-employee-link a {
  color: #6b7280;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.login-employee-link a:hover { color: var(--accent); }

/* ============================================================
   LOGIN FOOTER — scroll to reveal, blue overlay on image
   ============================================================ */

/* ============================================================
   LOGIN FOOTER — scroll to reveal, blue overlay on image
   ============================================================ */

.login-footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 80vh;
  background: rgba(20, 40, 70, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 40px 40px;
}

/* ---------- Brand (center) ---------- */
.footer-brand {
  flex: 1;
  display: flex;
  align-items: flex-start;         /* was: center — moves text up */
  justify-content: center;
  padding-top: 3vh;               /* distance from the top of the footer */
}

.footer-brand a {
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-brand a:hover { opacity: 0.85; }

/* ---------- Right-side vertical nav ---------- */
.footer-side-nav {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-side-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.footer-side-nav a:hover { opacity: 0.7; }

/* ---------- Bottom row ---------- */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 32px;
}

/* ---------- Legal links (bottom left) ---------- */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.footer-legal a:hover { opacity: 0.7; }

/* ---------- Address + copyright (bottom middle, grey) ---------- */
.footer-info {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

/* ---------- Social icons (bottom right) ---------- */
.footer-social {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Mobile: stack everything ---------- */
@media (max-width: 768px) {
  .login-footer {
    min-height: auto;
    padding: 60px 24px 40px;
  }

  .footer-brand {
    padding: 40px 0;
  }

  .footer-side-nav {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer-legal {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard-card { max-width: 560px; }

.dashboard-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 8px;
}

.dashboard-tile {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.dashboard-tile:hover { border-color: var(--accent); transform: translateY(-2px); }

.tile-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  font-weight: 600;
  margin-bottom: 8px;
}
.tile-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.tile-hint  { font-size: 12px; color: var(--text-mute); font-style: italic; }

#signout-btn {
  width: 100%;
  max-width: 200px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#signout-btn:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .auth-card { padding: 28px 22px 20px; border-radius: 12px; }
  .auth-page { padding: 24px 16px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .login-page { padding: 70px 16px 50px; }
  .login-card { padding: 24px 22px 18px; max-width: 100%; }

  .login-footer { padding: 48px 20px 32px; }
  .footer-nav { gap: 16px 24px; }
  .footer-nav a { font-size: 11px; }
  .footer-address { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none !important; }
}
/* ---------- Invitation-only note ---------- */
.login-note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.6;
  text-align: center;
}
.login-note a {
  color: #2563eb;
  text-decoration: none;
}
.login-note a:hover { text-decoration: underline; }
/* ============================================================
   SCROLL HINT
   ============================================================ */

.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  animation: scrollBob 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%      { transform: translateX(-50%) translateY(5px); opacity: 0.85; }
}

/* ============================================================
   LOGIN FOOTER — scroll to reveal, blue overlay on image
   ============================================================ */

.login-footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 80vh;
  background: rgba(20, 40, 70, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 40px 40px;
}

/* ---------- Brand (upper center) ---------- */
.footer-brand {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3vh;
}

.footer-brand a {
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-brand a:hover { opacity: 0.85; }

/* ---------- Right-side vertical nav ---------- */
.footer-side-nav {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-side-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.footer-side-nav a:hover { opacity: 0.7; }

/* ---------- Bottom row ---------- */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 32px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-legal a {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.footer-legal a:hover { opacity: 0.7; }

.footer-info {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}
.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .login-footer {
    min-height: auto;
    padding: 60px 24px 40px;
  }
  .footer-brand { padding: 20px 0; }
  .footer-side-nav {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer-legal { justify-content: center; }
  .footer-social { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none !important; }
}
/* ============================================================
   EMPLOYEE LOGIN — Full Image Fit, Side-by-Side Layout
   ============================================================ */

.employee-bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/employee_back.webp");
  
  /* 1. CONTAIN ensures the whole image and text is visible */
  background-size: contain; 
  
  /* 2. Push the logo to the right side of the screen */
  background-position: right center; 
  background-repeat: no-repeat;
  
  /* 3. Fill the empty space with the exact navy blue from your logo */
  background-color: #051936; 
}

/* 4. Move the login card to the left side */
.employee-login-body .login-page {
  justify-content: flex-start;
  padding-left: 2%;
}

/* On mobile, just stack them back in the center */
@media (max-width: 900px) {
  .employee-bg-image {
    background-position: center;
    background-size: contain;
  }
  .employee-login-body .login-page {
    justify-content: center;
    padding-left: 24px;
  }
}