/* ============================================================
   HAAP Platform — Auth page base layout
   ============================================================ */

body, html { height: 100%; margin: 0; overflow: hidden; }

/* Full-screen carousel */
.carousel,
.carousel-inner,
.carousel-item { height: 100vh; }
.carousel-item img {
  object-fit: cover;
  width: 100%; height: 100%;
  filter: brightness(80%);
}

/* ── Overlay: full screen, flex column ── */
.overlay-container {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* ── Top header bar with logo ── */
.auth-header {
  background: rgba(10, 16, 40, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.auth-header img {
  height: 36px;
  width: auto;
}
.auth-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.1px;
}
.auth-header-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,.5);
  margin-top: 1px;
}

/* ── Body below the header ── */
.auth-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 5%;
  overflow-y: auto;
}

/* ── Login card ── */
.login-container {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 2rem 2.25rem 1.75rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  max-width: 400px;
  width: 100%;
}

/* ── Login card inner title ── */
.login-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.login-card-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 1.4rem;
}

.label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  display: block;
}

/* ── Auth page footer (overlay pages) ── */
.auth-footer {
  background: rgba(10, 16, 40, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 0.55rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .01em;
  line-height: 1.5;
}
.auth-footer a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
}
.auth-footer a:hover { color: #fff; }
.auth-footer-dot { color: rgba(255,255,255,.22); font-size: 0.55rem; }

/* ── Auth page footer (plain pages — forgot password) ── */
.auth-footer-plain {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 8px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.5;
  z-index: 100;
}
.auth-footer-plain a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
}
.auth-footer-plain a:hover { color: #2563eb; }
.auth-footer-plain .auth-footer-dot { color: #cbd5e1; font-size: 0.55rem; }

/* Mobile */
@media (max-width: 768px) {
  .auth-header { padding: 0.55rem 1.2rem; }
  .auth-header img { height: 30px; }
  .auth-body {
    justify-content: center;
    align-items: flex-start;
    padding: 1.25rem 1rem;
  }
  .login-container { max-width: 100%; border-radius: 14px; padding: 1.5rem; }
}
