* {
  margin: 0;

  padding: 0;
}

body {
  margin: 0;
  overflow-x: hidden;
}
:root {
  --orange-start: #ff7a18;

  --orange-end: #ff9f43;
}

/* Reset overflow issues */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent horizontal scroll */

html,
body {
  width: 100%;

  height: 100%;

  margin: 0;

  padding: 0;

  overflow-x: hidden;
}

/* App wrapper */

.app-screen {
  height: 100vh !important;

  display: flex;

  flex-direction: column;

  overflow: hidden; /* prevents double scroll */
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
  padding: 20px; /* mobile safe spacing */
  box-sizing: border-box;
}

/* Header fixed height */

.app-header {
  flex-shrink: 0;
}

/* Footer fixed height */

.app-footer {
  flex-shrink: 0;
}

/* Scrollable content area */

.app-content {
  flex: 1;

  overflow-y: auto;

  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */

  padding-bottom: 80px; /* footer space */
}

/* Container safety */

.container {
  max-width: 100%;

  overflow-x: hidden;
}

/* Images & video safety */

img,
video,
canvas {
  max-width: 100%;

  height: auto;

  display: block;
}

/* Inputs & buttons safe sizing */

input,
button {
  max-width: 100%;
}

/* Prevent camera preview overflow */

#cameraContainer {
  width: 100%;

  overflow: hidden;
}

/* Safe area for iOS */

.app-footer {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Splash Screen */

#splash-screen {
  position: fixed;

  inset: 0;

  background: radial-gradient(
    circle at top right,

    #ff8c1a 0%,

    #ff6a00 35%,

    #0b0b0b 75%
  );

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 9999;

  overflow: hidden;
}

/* Logo Wrapper */

.logo-wrapper {
  width: min(70vw, 280px); /* responsive size */

  aspect-ratio: 1 / 1;
}

/* Logo */

.splash-logo {
  width: 100%;

  animation: cinematicZoomIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;

  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

/* Cinematic Zoom IN */

@keyframes cinematicZoomIn {
  0% {
    transform: scale(3.8);

    opacity: 0;
  }

  100% {
    transform: scale(1);

    opacity: 1;
  }
}

/* Zoom OUT (exit) */

.zoom-out {
  animation: cinematicZoomOut 1.4s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes cinematicZoomOut {
  0% {
    transform: scale(1);

    opacity: 1;
  }

  100% {
    transform: scale(18);

    opacity: 0;
  }
}

/* Accessibility: reduced motion */

@media (prefers-reduced-motion: reduce) {
  .splash-logo,
  .zoom-out {
    animation: none;

    opacity: 1;

    transform: scale(1);
  }
}

/* HOme page */

/* Skip Button */

.skip-btn {
  position: absolute;

  top: 20px;

  right: 20px;

  font-size: 0.9rem;

  opacity: 0.85;

  cursor: pointer;

  display: flex;

  align-items: center;

  gap: 6px;
}

.skip-btn span {
  font-size: 1.1rem;
}

/* Content */

.content-wrap {
  margin-top: auto;

  margin-bottom: auto;
  width: 100%;
  max-width: 420px;
  text-align: left;
  animation: fadeUp 0.8s ease forwards;
}

/* Logo */

.hero-logo {
  width: 100px;

  margin-bottom: 10px;

  animation: logoZoomIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Logo zoom-in */

@keyframes logoZoomIn {
  0% {
    transform: scale(0.6);

    opacity: 0;
  }

  100% {
    transform: scale(1);

    opacity: 1;
  }
}

/* Title */

.hero-title {
  font-size: clamp(1rem, 6vw, 3.4rem);

  font-weight: 800;

  line-height: 1.05;

  margin-bottom: 18px;
}

/* Description */

.hero-text {
  font-size: 0.95rem;

  opacity: 0.75;
}

/* Bottom buttons */

/* Full App Screen */

.app-screen {
  min-height: 100vh;

  background: radial-gradient(
    circle at top right,

    #ff8c1a 0%,

    #ff6a00 35%,

    #0b0b0b 75%
  );

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding: 24px;

  color: #fff;

  font-family: "Inter", system-ui, sans-serif;
}

/* Center Content */

.content-wrap {
  margin-top: auto;

  margin-bottom: auto;

  max-width: 420px;
}

/* Title */

/* Description */

.hero-text {
  font-size: 0.95rem;

  opacity: 0.75;
}

/* Bottom Buttons Container */

.bottom-actions {
  display: flex;

  flex-direction: column;

  gap: 14px;

  padding-bottom: env(safe-area-inset-bottom); /* iOS safe area */
}

/* Buttons */

.btn-primary-custom {
  background: linear-gradient(135deg, #ff6a00, #ff9f43);

  border: none;

  padding: 15px;

  border-radius: 999px;

  font-weight: 600;

  color: #fff;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 25px rgba(255, 106, 0, 0.45);
}

.btn-outline-custom {
  background: transparent;

  border: 1px solid rgba(255, 255, 255, 0.35);

  padding: 15px;

  border-radius: 999px;

  color: #fff;

  font-weight: 500;
}

.content-wrap {
  animation: fadeUp 0.8s ease forwards;
}

.bottom-actions {
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(25px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

.bottom-actions {
  display: flex;

  flex-direction: column;

  gap: 14px;

  padding-bottom: env(safe-area-inset-bottom);

  animation: fadeUp 1s ease forwards;
  width: 100%;
}

/* Fade up */

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(25px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* Login and signup screen */

.login-card {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

/* Input Group */

.form-group-custom {
  display: flex;

  flex-direction: column;

  gap: 14px;

  margin-top: 24px;
}

/* Inputs */

.form-group-custom input {
  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.15);

  padding: 14px 16px;

  border-radius: 12px;

  color: #fff;

  font-size: 0.95rem;

  outline: none;
}

.form-group-custom input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group-custom input:focus {
  border-color: #ff8c1a;

  background: rgba(255, 255, 255, 0.12);
}

/* Forgot password */

.forgot-link {
  display: inline-block;

  margin-top: 14px;

  font-size: 0.85rem;

  color: rgba(255, 255, 255, 0.75);

  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.app-screen {
  animation: pageEnter 0.6s ease forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;

    transform: translateX(40px);
  }

  to {
    opacity: 1;

    transform: translateX(0);
  }
}

/* Signup ENd */

/* Responsive */
/* Mobile fine-tuning */
@media (max-width: 600px) {
  .content-wrap {
    max-width: 100%;
  }
}
