/* Universal styles */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
}

/* Body styling */
body {
  background: linear-gradient(120deg, #b3e0ff 0%, #ffe0f7 40%, #fff 70%, #a1c4fd 100%);
  background-size: 300% 300%;
  animation: skyGradient 18s ease-in-out infinite;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 30%, #fff 0%, #b3e0ff 40%, transparent 70%),
              radial-gradient(circle at 80% 70%, #ffe0f7 0%, #fff 30%, transparent 70%);
  opacity: 0.7;
  z-index: 0;
}

@keyframes skyGradient {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Glassmorphism container */
.container {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  border-radius: 18px;
  margin: 40px auto;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
}

/* Heading */
h1, h2, h4 {
  text-align: center;
  margin-bottom: 18px;
  font-weight: 700;
  color: #000000;
  text-shadow: 0 2px 12px #6a11cb;
  letter-spacing: 1px;
}

/* Input fields */
input, textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.7);
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, border 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #2575fc;
  background: #fff;
}

/* Label styling */
label {
  color: #003b5b;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
  font-size: 1em;
}

.get-data-btn {
  display: inline-block;
  background: linear-gradient(90deg, #2575fc 0%, #ff00ea 100%);
  color: #fff;
  padding: 10px 22px;
  border-radius: 22px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  transition: background 0.3s, transform 0.2s;
  margin: 8px 0;
  font-size: 1em;
}

.get-data-btn:hover {
  background: linear-gradient(90deg, #ff00ea 0%, #2575fc 100%);
  transform: scale(1.07);
}
/* Textarea fields */
textarea {
  min-height: 110px;
  resize: vertical;
}

/* Submit button */
button[type="submit"] {
  background: linear-gradient(90deg, #ff00ea 0%, #2575fc 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 14px 0;
  font-size: 1.15em;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  width: 100%;
  letter-spacing: 1px;
}

button[type="submit"]:hover {
  background: linear-gradient(90deg, #2575fc 0%, #ff00ea 100%);
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

/* Login message */
#login-message {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px #2575fc;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  color: #fff;
  font-size: 1em;
  text-shadow: 0 2px 8px #2575fc;
}

footer a {
  color: #ff00ea;
  text-decoration: underline;
  font-weight: 500;
}

body::before, body::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

body::before {
  width: 320px;
  height: 320px;
  left: -80px;
  top: 40px;
  background: radial-gradient(circle, #a8e063 60%, transparent 100%);
  animation: floatLeaf 12s linear infinite;
}

body::after {
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: 60px;
  background: radial-gradient(circle, #38b6ff 60%, transparent 100%);
  animation: floatLeaf 16s linear infinite reverse;
}

@keyframes floatLeaf {
  0% { transform: translateY(0) scale(1);}
  50% { transform: translateY(40px) scale(1.08);}
  100% { transform: translateY(0) scale(1);}
}

 /* Add styles for top bar and login button */
  .top-bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 100;
    padding-right: 30px;
  }
  .login-btn {
    background: #2575fc;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 1em;
    margin-left: 16px;
  }
  .home-section {
    margin-top: 80px;
    text-align: center;
  }
  /* Modal style for login form */
  #login-form-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    /* Blur background */
    backdrop-filter: blur(3px);
  }
  #login-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 32px 28px;
    min-width: 320px;
    max-width: 90vw;
    margin: 0 auto;
    position: relative;
    /* Center the form */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body {
    font-family: 'Segoe UI', Arial, sans-serif; 
    background: #f8faff;
    margin: 0;
    padding: 0;
  }
  .top-bar {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 100;
    padding: 10px 30px;
  }
  .login-btn {
    background: linear-gradient(90deg,#2575fc,#6a11cb);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 1em;
    margin-left: 16px;
    transition: background 0.2s;
  }
  .login-btn:hover {
    background: linear-gradient(90deg,#6a11cb,#2575fc);
  }
  #logout-btn {
    background: #ff4d4d;
  }
  .home-section nav {
    text-align: center;
    margin-bottom: 24px;
  }
  .home-section nav a {
    margin: 0 12px;
    color: #2575fc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
  }
  .home-section nav a:hover {
    color: #6a11cb;
    text-decoration: underline;
  }
  .home-section section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px;
    margin: 32px auto;
    max-width: 600px;
    transition: box-shadow 0.2s;
  }
  .home-section section:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  }
  #login-form-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
  }
  #login-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 32px 28px;
    min-width: 320px;
    max-width: 90vw;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #close-login {
    position: absolute;
    top: 12px;
    right: 18px;
    background: #2575fc;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.1em;
    cursor: pointer;
  }
  .container {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 32px 24px;
  }
  label {
    font-weight: 500;
    color: #2575fc;
    margin-top: 12px;
    display: block;
  }
  input, textarea {
    width: 100%;
    padding: 8px 12px;
    margin: 8px 0 16px 0;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    font-size: 1em;
    box-sizing: border-box;
  }
  button[type="submit"] {
    background: linear-gradient(90deg,#2575fc,#6a11cb);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 8px;
    transition: background 0.2s;
  }
  button[type="submit"]:hover {
    background: linear-gradient(90deg,#6a11cb,#2575fc);
  }
  @media (max-width: 700px) {
    .container, .home-section section { max-width: 98vw; padding: 12px; }
    #login-form { min-width: 90vw; }
  }
