/* =========================
   RESET + THEME
========================= */
* { box-sizing: border-box; }

html, body { height: 100%; }

:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.08);
  --panel-2: rgba(255,255,255,0.12);
  --text: #eaf0ff;
  --muted: rgba(234,240,255,0.75);
  --stroke: rgba(255,255,255,0.16);
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --shadow: 0 14px 40px rgba(0,0,0,0.35);
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  overflow-y: auto;
  background: var(--bg);
}

/* =========================
   HERO (FIRST SCREEN)
========================= */
.hero{
  min-height: 100vh;
  display: flex;
}

/* The “page” becomes a glassy panel over a background */
.page{
  width: 100%;
  min-height: 100vh;
  padding: 32px 56px;

  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(253, 253, 253, 0.851), transparent 60%),
    radial-gradient(900px 600px at 85% 15%, rgba(146, 189, 242, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);

  display: flex;
  flex-direction: column;
  position: relative;
}

/* Top row */
.topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Make logo + login look real */
.logo{
  width: 220px;
  height: 56px;
  justify-content: flex-start;
  padding-left: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.logo img {
  height:100%;
  width:auto;
  max-height: 60px;
  max-width: 180px;
  object-fit: contain;
}
.login{
  width: 140px;
  height: 44px;
  font-weight: 700;
}

/* Main area – keep your “cluster near bottom”, but nicer spacing */
.content{
  flex: 1;
  display: flex;
  align-items: flex-end;
}

/* Left cluster */
.left-panel{
  width: min(520px, 100%);
  margin-bottom: 88px;
}

/* =========================
   COMPONENT LOOKS
========================= */
.box{
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--text);

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  text-align: center;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

/* Hover/focus accessibility */
.box:focus-visible{
  outline: 3px solid rgba(96,165,250,0.55);
  outline-offset: 3px;
}

/* Search bar becomes “input-like” */
.search{
  width: min(520px, 100%);
  height: 58px;
  margin-bottom: 16px;

  justify-content: flex-start;
  padding: 0 18px;
  color: var(--muted);
  font-weight: 600;
  border-radius: 999px;
}

.search::before{
  content: "🔎";
  margin-right: 10px;
  opacity: 0.9;
}

/* Buttons */
.button-row{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn{
  width: 180px;
  height: 92px;
  padding: 14px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.2px;

  background: linear-gradient(135deg, rgba(59,130,246,0.32), rgba(255,255,255,0.10));
  border: 1px solid rgba(96,165,250,0.35);

  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.30);
  background: linear-gradient(135deg, rgba(59,130,246,0.44), rgba(255,255,255,0.12));
}

/* Login button styling */
.login{
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 160ms ease, background 160ms ease;
}
.login:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
}

/* Bottom arrow indicator – softer, animated */
.down-indicator{
  position: absolute;
  left: 50%;
  bottom: 22px;

  width: 26px;
  height: 26px;
  border-right: 3px solid rgba(234,240,255,0.85);
  border-bottom: 3px solid rgba(234,240,255,0.85);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0.85;

  animation: bob 1.4s ease-in-out infinite;
}

@keyframes bob{
  0%,100%{ transform: translateX(-50%) rotate(45deg) translateY(0); }
  50%{ transform: translateX(-50%) rotate(45deg) translateY(6px); }
}

/* =========================
   BELOW THE FOLD CONTENT
========================= */
.more{
  background: #ffffff;
  color: #0b1220;
  padding: 56px min(8vw, 72px);
}

.real-header h1{
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.4px;
}

.real-header h2{
  margin: 0 0 28px;
  font-weight: 600;
  color: rgba(11,18,32,0.70);
}

.real-section{
  background: #f6f8fc;
  border: 1px solid rgba(11,18,32,0.10);
  border-radius: 18px;
  padding: 22px;
  margin: 18px 0;
}

.real-section h3{
  margin: 0 0 12px;
  font-size: 20px;
}

.real-section ul,
.real-section ol{
  margin: 0;
  padding-left: 22px;
  line-height: 1.7;
  color: rgba(11,18,32,0.82);
}

/* =========================
   GENERIC INNER PAGES (FORMS)
   Works across multiple pages
========================= */
.site-page{
  min-height: 100vh;
  padding: 56px 18px 80px;
  display: grid;
  place-items: start center;
}

.site-page h2{
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.4px;
  text-align: center;
}

/* The form container */
.form-card{
  width: min(560px, 100%);
  padding: 28px;

  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 20px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 20px 55px rgba(0,0,0,0.35);
}

/* Labels + inputs */
.form-card label{
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 650;
  font-size: 14px;
  color: var(--muted);
}

.form-card input,
.form-card select,
.form-card textarea{
  width: 100%;
  padding: 14px 16px;

  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 14px;

  color: var(--text);
  font-size: 15px;
  font-family: inherit;

  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-card input::placeholder,
.form-card textarea::placeholder{
  color: rgba(234,240,255,0.55);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus{
  outline: none;
  border-color: rgba(96,165,250,0.9);
  box-shadow: 0 0 0 4px rgba(96,165,250,0.22);
  background: rgba(255,255,255,0.09);
}

/* Primary action button */
.primary-btn{
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;

  border: none;
  border-radius: 14px;

  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;

  font-weight: 800;
  font-size: 16px;
  cursor: pointer;

  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(59,130,246,0.40);
  filter: brightness(1.02);
}

.primary-btn:active{
  transform: translateY(0);
}

.primary-btn:focus-visible{
  outline: 3px solid rgba(96,165,250,0.55);
  outline-offset: 3px;
}

/* Mobile tweaks */
@media (max-width: 700px){
  .form-card{
    padding: 22px;
    border-radius: 18px;
  }
}

/* =========================
   HOME LINK (INNER PAGES)
========================= */
.home-link{
  align-self: flex-start;
  margin-bottom: 20px;

  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);

  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;

  transition: 0.2s ease;
}

.home-link:hover{
  background: rgba(255,255,255,0.14);
  transform: translateX(-4px);
}

.home-link:focus-visible{
  outline: 3px solid rgba(96,165,250,0.55);
  outline-offset: 3px;
}

/* =========================
   AUTH (LOGIN/SIGNUP) UI
========================= */
.tabs{
  width: min(560px, 100%);
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tab{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tab:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
}

.tab[aria-selected="true"]{
  background: linear-gradient(135deg, rgba(59,130,246,0.35), rgba(255,255,255,0.10));
  border-color: rgba(96,165,250,0.55);
}

.auth-note{
  width: min(560px, 100%);
  margin: 0 0 14px;
  color: rgba(234,240,255,0.80);
  font-size: 14px;
  line-height: 1.5;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 700px){
  .form-row{ grid-template-columns: 1fr; }
}

.helper-links{
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.helper-links a{
  color: rgba(234,240,255,0.85);
  text-decoration: none;
  border-bottom: 1px dashed rgba(234,240,255,0.35);
}

.helper-links a:hover{
  color: #fff;
  border-bottom-color: rgba(234,240,255,0.75);
}

.success-banner{
  width: min(560px, 100%);
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.30);
  color: rgba(234,240,255,0.95);
}

.error-banner{
  width: min(560px, 100%);
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(239,68,68,0.14);
  border: 1px solid rgba(239,68,68,0.30);
  color: rgba(234,240,255,0.95);
}

/* =========================
   BIKE REGISTER FORM ONLY
========================= */
.bike-form select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 42px;
  cursor: pointer;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(234,240,255,0.8) 50%),
    linear-gradient(135deg, rgba(234,240,255,0.8) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.bike-form select option{
  background: #0b1220;
  color: var(--text);
}

.bike-form input[type="file"]{
  width: 100%;
  padding: 12px 14px;

  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 14px;

  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.bike-form input[type="file"]::file-selector-button{
  margin-right: 12px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.bike-form input[type="file"]::file-selector-button:hover{
  filter: brightness(1.05);
}