/* =========================
   GLOBAL
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* =========================
   BODY
========================= */

body {
  margin: 0;
  padding: 0;

  padding-bottom: 50px;

  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  font-family: Inter, system-ui, -apple-system, sans-serif;

  color: white;

  overflow-x: hidden;
  overflow-y: auto;

  background: #0f172a;
}

/* =========================
   HEADER
========================= */

.topbar {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  padding: 5px 18px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 1000;

  background: rgba(15, 23, 42, 0.45);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 2px solid rgba(0, 0, 0, 0.55);

  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.topbar-logo {
  margin: 0;

  font-size: 46px;
  letter-spacing: 2px;
  text-transform: uppercase;

  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;

  background: linear-gradient(90deg, #ffffff, #cbd5e1);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  -webkit-text-stroke: 1.5px black;

  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.2),
    0 0 25px rgba(56, 189, 248, 0.15);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-btn {
  border: none;
  outline: none;
  cursor: pointer;

  padding: 10px 18px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;

  font-family: inherit;

  transition: 0.25s ease;
}

.login-btn {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.signup-btn {
  color: white;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 114, 255, 0.35);
}

/* =========================
   BACKGROUND BLOBS
========================= */

body::before,
body::after {
  content: "";
  position: absolute;

  width: 400px;
  height: 400px;

  border-radius: 50%;
  filter: blur(120px);

  z-index: 0;
  pointer-events: none;

  animation: float 8s infinite alternate ease-in-out;
}

body::before {
  background: #00c6ff;
  top: -100px;
  left: -100px;
}

body::after {
  background: #7c3aed;
  bottom: -100px;
  right: -100px;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, -50px) scale(1.2);
  }
}

/* =========================
   CONTAINER
========================= */

.container {
  width: min(420px, 92%);

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-radius: 18px;
  padding: 18px;

  text-align: center;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);

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

  position: relative;
  z-index: 2;

  animation: pop 0.6s ease;
}

@keyframes pop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   LOGO
========================= */

.logo {
  font-size: 42px;
  font-weight: 700;

  letter-spacing: 2px;
  text-transform: uppercase;

  font-family: "Inter", sans-serif;

  margin: 0 0 12px 0;

  background: linear-gradient(90deg, #00c6ff, #7c3aed);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* =========================
   UPLOAD BOX
========================= */

.upload-box {
  position: relative;

  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 16px;

  padding: 18px;

  cursor: pointer;

  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);

  transition: 0.35s ease;
}

.upload-box:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);

  transform: translateY(-2px);

  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
}

/* =========================
   DRAGOVER EFFECT
========================= */

.upload-box.dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);

  transform: scale(1.02);
}

/* =========================
   ICON
========================= */

.upload-icon {
  font-size: 58px;

  color: #38bdf8;

  text-shadow:
    0 0 15px rgba(56, 189, 248, 0.5),
    0 0 30px rgba(56, 189, 248, 0.35);

  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35));

  transition: all 0.3s ease;
}

/* breathing animation during upload */
.upload-box.uploading .upload-icon {
  animation: iconPulse 1s infinite ease-in-out;
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.75;
  }
}

/* =========================
   BUTTON
========================= */

.btn {
  width: 100%;
  margin-top: 15px;

  padding: 12px;

  border: none;
  border-radius: 10px;

  font-size: 16px;
  color: white;

  cursor: pointer;

  background: linear-gradient(135deg, #00c6ff, #0072ff);

  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 10px 25px rgba(0, 114, 255, 0.4);
}

/* =========================
   DISABLED BUTTON
========================= */

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;

  transform: none;
}

/* =========================
   FILE NAME
========================= */

#fileName {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.8;
}

.sub-text {
  opacity: 0.6;
  font-size: 12px;
}

/* =========================
   LOADING
========================= */

.loading-box {
  display: none;
  margin-top: 15px;

  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* =========================
   SPINNER
========================= */

.spinner {
  width: 25px;
  height: 25px;

  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #00c6ff;

  border-radius: 50%;

  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* =========================
   PROGRESS BAR
========================= */

progress {
  display: none;
  width: 100%;
  height: 12px;

  margin-top: 12px;

  border-radius: 20px;
  overflow: hidden;
}

/* =========================
   SUCCESS
========================= */

.success {
  display: none;
  margin-top: 12px;

  color: #22c55e;
  font-weight: bold;
}

/* =========================
   DOWNLOAD BUTTON
========================= */

.download-btn {
  display: none;

  margin-top: 15px;
  padding: 12px 20px;

  border-radius: 10px;

  text-decoration: none;
  color: white;
  font-weight: bold;

  background: linear-gradient(135deg, #22c55e, #16a34a);

  animation: popBtn 0.4s ease;
}

@keyframes popBtn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   FOOTER
========================= */

.trademark {
  position: fixed;
  bottom: 12px;

  width: 100%;
  text-align: center;

  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {

  .upload-icon {
    font-size: 45px;
  }

  .logo {
    font-size: 34px;
  }
}