/*
  Aero Xpress landing page styles
  Inspired by the layout and aesthetic of the Air Maestro login page.
*/

:root {
  --bg-start: #0d2b67;
  --bg-end: #188bdc;
  --accent: #e53935; /* red accent for logo swirl */
  --text: #eaf2ff;
  --muted: #c8d3e6;
  --card-bg: rgba(9, 16, 40, 0.55);
  --card-border: rgba(255, 255, 255, 0.08);
  --shadow-1: 0 10px 30px rgba(4, 10, 40, 0.6);
  --shadow-2: 0 2px 8px rgba(8, 14, 40, 0.4) inset;
  --btn-bg: #2f333b;          /* dark grey base similar to Air Maestro */
  --btn-bg-hover: #3a3f49;    /* slightly lighter on hover */
  --btn-border: rgba(255,255,255,0.18);
  --link: #9bd1ff;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #0a1929;
  overflow: hidden;
}

/* Background layers */
.background { position: fixed; inset: 0; overflow: hidden; }
.bg-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 31, 60, 0.85) 0%, rgba(10, 25, 41, 0.9) 100%);
  z-index: 2;
}
.bg-photo { 
  position: absolute; 
  inset: 0; 
  background: url('../assets/background_image_2.jpg') 68% 50% / cover no-repeat; 
  filter: saturate(100%) contrast(105%) brightness(95%);
  z-index: 1;
}
.bg-clarity { display: none; }
.bg-highlight { display: none; }
.bg-vignette { 
  position: absolute; 
  inset: -10%; 
  background: radial-gradient(60% 60% at 50% 50%, transparent 60%, rgba(0,0,0,0.5) 100%); 
  mix-blend-mode: multiply;
  z-index: 3;
}


/* Layout */
.center { position: relative; height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 16px 100px; }

.card {
  width: min(420px, 90vw);
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo container */
.brand-logo-svg { width: min(180px, 45vw); max-width: 180px; margin: 0 auto 24px; }
.brand-logo-svg svg { width: 100%; height: auto; display: block; }
.brand-logo-svg img { max-width: 100%; height: auto; display: block; filter: none; }
.brand-logo { display: block; margin: 0 auto; height: auto; }

.brand-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.signin-text {
  font-size: 1.5rem;
  font-weight: 300;
  color: #ffffff;
  margin: 60px 0 40px 0;
  letter-spacing: 0.3px;
}

.actions { display: flex; gap: 12px; justify-content: center; align-items: center; margin-bottom: 24px; width: 100%; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 450px; padding: 16px 32px;
  border-radius: 6px; border: none;
  text-decoration: none; color: #fff; font-weight: 500; letter-spacing: 0.4px;
  font-size: 1.05rem;
  background: #1e4976;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background 200ms ease, box-shadow 200ms ease;
}
.btn:hover { background: #2a5a8a; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }

.terms-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin: 16px 0 0 0;
  letter-spacing: 0.2px;
}

.terms-link {
  color: #5b9bd5;
  text-decoration: none;
  transition: color 200ms ease;
}

.terms-link:hover {
  color: #7db3e8;
  text-decoration: underline;
}

/* Both buttons are dark like ForeFlight */
.btn-primary { background: #1e4976; }
.btn-primary:hover { background: #2a5a8a; }
.btn-secondary { background: #1e4976; }
.btn-secondary:hover { background: #2a5a8a; }

.version { margin: 14px 0 0; font-size: 0.95rem; color: var(--muted); }
.link { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

.footer { 
  position: fixed; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  width: 100%;
  color: rgba(255,255,255,0.7); 
  font-size: 0.8rem; 
  padding: 16px 0;
  background: rgba(10, 20, 35, 0.6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  padding: 0 40px;
  max-width: none;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  flex-shrink: 0;
}
.footer-version {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}
.footer-developer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
}
.developer-link {
  color: #5b9bd5;
  text-decoration: none;
  transition: color 200ms ease;
}
.developer-link:hover {
  color: #7db3e8;
  text-decoration: underline;
}
.footer-right {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.footer .link { color: #5b9bd5; }

@media (max-width: 640px) {
  .footer-content {
    padding: 0 20px;
  }
  .footer-left {
    font-size: 0.8rem;
  }
  .footer-right {
    font-size: 0.7rem;
  }
}

/* Accessibility helpers */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; clip-path: inset(50%);
}

@media (min-width: 640px) {
  .actions { grid-template-columns: 1fr 1fr; }
}
