/* =====================
   GLOBAL BACKGROUND
   ===================== */
body {
  background-image: url("/static/wallpaper_blue.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
}

/* =====================
   FANCY FONT
   ===================== */
@font-face {
    font-family: "Motterdam";
    src: url("/static/fonts/Motterdam.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Liana";
    src: url("/static/fonts/Liana.ttf") format("opentype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Brooklyn";
    src: url("/static/fonts/Brooklyn.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

.Brooklyn {
    font-family: "Brooklyn", cursive;
    font-weight: normal;
}

h1.Brooklyn {
    font-size: 5rem;
    margin-bottom: 1rem;
}

h2.Brooklyn {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.Motterdam {
    font-family: "Motterdam", cursive;
    font-weight: normal;
}

h1.Motterdam {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.Liana {
  font-family: "Liana", cursive;
  font-weight: normal;
}

h1.Liana {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Responsive scaling for mobile */
@media (max-width: 640px) {
    h1.fancy {
        font-size: 2rem;
    }

    h2.fancy {
        font-size: 1.6rem;
    }
}

/* =====================
   OVERLAY / CONTAINER
   ===================== */
.bg-overlay {
  background: rgb(243, 252, 240);
  backdrop-filter: blur(5px);
}

.content-container {
  max-width: 500px;
  width: 100%;
  margin-top: 5rem;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* =====================
   TEXT & HEADINGS
   ===================== */
h1, h2 {
  color: #333;
  margin-bottom: 1rem;
}

p {
  color: #444;
  margin-bottom: 1rem;
}

/* =====================
   FORMS
   ===================== */
form {
  margin-top: 1rem;
}

input[type="file"],
input[type="password"],
input[type="text"] {
  display: block;
  margin: 0.5rem 0;
  padding: 0.6rem;
  width: 100%;
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/* Password/Form sections */
.password-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.password-form input {
  flex: 1 1 auto;
  min-width: 180px;
}

.password-form button {
  flex: 0 0 auto;
}

/* Login form inline */
.login-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.login-form input[type="password"] {
  flex: 1;
  max-width: 250px;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.login-form button {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.login-form button:hover {
  background: linear-gradient(135deg, #66BB6A, #388E3C);
  transform: scale(1.03);
}

/* =====================
   BUTTONS
   ===================== */
button {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: linear-gradient(135deg, #66BB6A, #388E3C);
  transform: scale(1.03);
}

button:disabled {
  background-color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

/* =====================
   FORMS WITH INLINE BUTTONS
   ===================== */
.password-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.password-form input[type="password"],
.password-form input[type="text"] {
  flex: 1;
  min-width: 150px;
}

.password-form button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* =====================
   NAV LINKS AS BUTTONS
   ===================== */
.nav-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.nav-links a:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* =====================
   QR CODE
   ===================== */
.qr-code {
  display: block;
  margin: 1rem auto 0 auto;
  max-width: 200px;
  height: auto;
}

/* =====================
   SECTION DIVIDER
   ===================== */
hr.section-divider {
  margin: 1.5rem 0;
  border: 0.5px solid #ccc;
}

/* =====================
   ANIMATIONS
   ===================== */
.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .content-container {
    width: 100%;
    margin: 0 1rem;
    padding: 1rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  p {
    font-size: 0.9rem;
  }

  .password-form {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* ✅ Fix password input overflow on mobile */
  .password-form input[type="password"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .password-form button {
    width: 100%;
  }
}

/* =====================
   INLINE FORM FIXES
   ===================== */
.password-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.password-form input[type="password"] {
  flex: 1;
}

.upload-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.upload-form input[type="file"] {
  flex: 1;
}

/* =====================
   GLOBAL BOX SIZING
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
}
