/* Basic reset + background */

body {
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: url('your-background.jpg') center/cover no-repeat fixed;
  /* Use your own background image or sunflower image */
}


/* Container section with glass effect */

.login-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 2rem 1rem; /* add side padding for small screens */
  box-sizing: border-box;
  background: transparent;
}

.login-section:before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 43, 80, 0.13);
  z-index: 0;
}


/* Glass panel with frosted effect */

.login-glass {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.27);
  border-radius: 24px;
  box-shadow: 0 8px 40px 0 rgba(30, 60, 80, 0.09);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);

  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 2.5rem 2.3rem;
  width: 340px;
  max-width: 94vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: fadeInPop 0.9s cubic-bezier(.32, 1.03, .67, 1.04);
}


/* Animation keyframes */

@keyframes fadeInPop {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Logo styles */

.login-logo {
  text-align: center;
  margin-bottom: 2.1rem;
}

.login-logo img {
  width: 10rem;
  height: 6rem;
  margin-bottom: 0.7rem;
  object-fit: contain;
}

.login-logo h1 {
  font-size: 1.28rem;
  font-weight: 700;
  color: #333;
  margin: 0.5rem 0;
  letter-spacing: 1.2px;
}

.login-logo p {
  font-size: 0.96rem;
  color: #7a6c38;
  margin: 0 0 0.5rem 0;
}


/* Inputs */

.input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  padding: 0.15rem 1rem;
  margin-bottom: 1.15rem;
  border: 1.2px solid #e7d07c5e;
  box-shadow: 0 1px 4px #eec43a11;
  transition: border 0.21s;
}

.input-group:focus-within {
  border: 1.5px solid #ffd647;
}

.input-group label {
  color: #d4af37;
  font-size: 1.25rem;
  margin-right: 0.8rem;
  white-space: nowrap;
}

.input-group input {
  flex: 1;
  font-size: 1rem;
  padding: 0.65rem 0.2rem;
  background: transparent;
  border: none;
  outline: none;
  color: #333;
  font-weight: 500;
  letter-spacing: 1px;
  min-width: 0; /* fix flexbox input shrink */
}


/* Button */

.login-btn {
  background: linear-gradient(90deg, #ffd43b 20%, #fbc02d 100%);
  color: #534107;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 99px;
  padding: 0.8rem 0;
  margin-top: 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 10px #fae67a33;
  letter-spacing: 1.2px;
  transition: background 0.22s, color 0.18s;
  width: 100%;
}

.login-btn:hover {
  background: linear-gradient(90deg, #f5d94b 0%, #ffe08f 100%);
  color: #191600;
}


/* Responsive styling for small screens */

@media (max-width: 530px) {
  body{
    position: fixed;
  }

  .login-section {
    min-height: 100vh;        /* allow shrinking */
    padding-top: 3rem;      
    padding-bottom: 3rem;   
    position: fixed;
  }

  .login-glass {
    width: 90vw;             /* almost full screen width */
    max-width: 340px;       
    padding: 1.5rem 1rem;
    margin: 0 auto;
  }

  .login-logo {
    margin-bottom: 2rem;
  }

  .login-logo img {
    width: 8rem;
    height: 5rem;
    margin-bottom: 0.7rem;
  }

  .input-group label {
    font-size: 1rem;
    margin-right: 0.5rem;
  }

  .input-group input {
    font-size: 0.9rem;
  }

  .login-btn {
    font-size: 1rem;
    padding: 0.75rem 0;
  }
}
