/* ─── Intro screen layout ────────────────────────────────────────────── */
.intro-screen {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 56px;
  padding: 24px;
}

/* ─── Logo bar: Dyar left · divider at screen center · Google right ─── */
.logo-bar {
  display: flex;
  align-items: center;
  width: 100%;
  opacity: 0;
}

.logo-half {
  flex: 1;
  display: flex;
  align-items: center;
}

.logo-half--left {
  justify-content: flex-end;
  padding-right: 36px;
}

.logo-half--right {
  justify-content: flex-start;
  padding-left: 36px;
}

.logo-arabiandyar {
  height: 158px;
}

.logo-google-top {
  height: 148px;
}

.logo-arabiandyar,
.logo-google-top {
  width: auto;
  object-fit: contain;
  max-width: 100%;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-arabiandyar:hover,
.logo-google-top:hover {
  opacity: 0.8;
  transform: scale(1.04);
}

.logo-divider {
  display: block;
  flex-shrink: 0;
  width: 1px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.22) 30%,
    rgba(255, 255, 255, 0.22) 70%,
    transparent
  );
}

.logo-google-btn {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ─── Login wrapper — no card, button stands alone ───────────────────── */
.login-popup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  opacity: 0;
  transform: scale(0.92);
}

.popup-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Google sign-in button ──────────────────────────────────────────── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-height: 40px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 9px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    border-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
    transform     240ms cubic-bezier(0.16, 1, 0.3, 1),
    background    240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-google:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.01);
  background: rgba(255, 255, 255, 0.09);
}

.btn-google:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ─── Error state ────────────────────────────────────────────────────── */
.error-message {
  font-size: 0.8125rem;
  color: var(--danger);
  text-align: center;
  min-height: 1.2em;
  /* Hidden when empty — no JS class needed */
}

.error-message:empty {
  display: none;
}


/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 5;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeUp 500ms cubic-bezier(0.16, 1, 0.3, 1) 1100ms both;
  pointer-events: none;
}

/* ─── Entrance animations ────────────────────────────────────────────── */
.fade-in-logo {
  animation: fadeUp 600ms cubic-bezier(0.16, 1, 0.3, 1) 300ms forwards;
}

.fade-in-popup {
  animation: popupEntrance 500ms cubic-bezier(0.16, 1, 0.3, 1) 800ms forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes popupEntrance {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-in-logo,
  .fade-in-popup {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ─── Tablet (≤900px) ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .logo-arabiandyar,
  .logo-google-top {
    height: 10vw;
  }

  .logo-half--left  { padding-right: 24px; }
  .logo-half--right { padding-left:  24px; }
}

/* ─── Mobile (≤600px) ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .intro-screen {
    gap: 32px;
    padding: 28px 16px;
  }

  .logo-arabiandyar,
  .logo-google-top {
    height: 12vw;
  }

  .logo-half--left  { padding-right: 12px; }
  .logo-half--right { padding-left:  12px; }

  .logo-divider {
    height: 28px;
  }

  .btn-google {
    width: auto;
    min-height: 40px;
    padding: 9px 18px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }

  .logo-google-btn {
    width: 15px;
    height: 15px;
  }
}

/* ─── Small mobile (≤380px) ─────────────────────────────────────────── */
@media (max-width: 380px) {
  .logo-arabiandyar,
  .logo-google-top {
    height: 11vw;
  }

  .logo-half--left  { padding-right: 10px; }
  .logo-half--right { padding-left:  10px; }
}
