/* RESET & FONTS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #03032a, #764ba2);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem; /* prevent touching edges on small screens */
}

/* LOGIN WRAPPER */
.login-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px; /* container scales on mobile */
}

/* MONKEY ABOVE CARD */
.monkey-wrapper {
  position: absolute;
  top: -90px; /* slightly smaller for mobile */
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 120px;
  height: 120px;
}

/* MONKEY CORE */
.monkey {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

/* FACE */
.face {
  width: 70%;
  height: 70%;
  background: radial-gradient(circle at 30% 25%, #e3b98c, #9a5f3a);
  border-radius: 50%;
  position: absolute;
  top: 15%;
  left: 15%;
  box-shadow:
    inset -10px -10px 18px rgba(0,0,0,0.25),
    inset 6px 6px 12px rgba(255,255,255,0.2),
    0 18px 30px rgba(0,0,0,0.35);
  transition: transform 0.45s ease;
}

/* EARS */
.ear {
  width: 20%;
  height: 20%;
  background: radial-gradient(circle at 30% 30%, #d19b73, #6f3f24);
  border-radius: 50%;
  position: absolute;
  top: 30%;
  z-index: -1;
  box-shadow: inset -5px -5px 10px rgba(0,0,0,0.35);
}

.ear.left { left: 0; }
.ear.right { right: 0; }

/* EYES */
.eye {
  width: 10%;
  height: 10%;
  background: #111;
  border-radius: 50%;
  position: absolute;
  top: 35%;
  transition: transform 0.05s ease-out;
}

.eye.left { left: 25%; }
.eye.right { right: 25%; }

/* HANDS */
.hand {
  width: 35%;
  height: 20%;
  background: radial-gradient(circle at 30% 30%, #d19b73, #6f3f24);
  border-radius: 30px;
  position: absolute;
  top: 60%;
  z-index: 5;
  box-shadow:
    inset -6px -6px 10px rgba(0,0,0,0.35),
    0 12px 18px rgba(0,0,0,0.35);
  transition: transform 0.45s cubic-bezier(.68,-0.6,.32,1.6);
}

.left-hand { left: -10%; }
.right-hand { right: -10%; }

.monkey.hide .left-hand {
  transform: translate(30px, -25px) rotate(25deg) scale(1.1);
}
.monkey.hide .right-hand {
  transform: translate(-30px, -25px) rotate(-25deg) scale(1.1);
}
.monkey.hide .eye {
  opacity: 0;
}
.monkey.hide .face {
  transform: rotateX(12deg);
}

/* LOGIN CARD */
.container {
  width: 100%;
  max-width: 350px;
  background: #d0d5b9;
  padding: 2rem;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: fadeIn 1s ease;
  margin-top: 70px; /* space for monkey */
}

/* Titles */
.title {
  font-size: 1.8rem;
  margin-bottom: 10px;
  animation: floatText 2s infinite ease-in-out;
}

.subtitle {
  color: #555;
  margin-bottom: 20px;
}

/* Input Boxes */
.input-box {
  position: relative;
  margin-bottom: 20px;
}

.input-box input {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
  font-size: 1rem;
  border-radius: 12px;
  background: #f7f7f7;
  transition: 0.3s;
}

.input-box input:focus {
  border-bottom-color: #764ba2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.input-box label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  transition: 0.3s;
}

.input-box input:focus + label,
.input-box input:valid + label {
  top: -12px;
  font-size: 12px;
  color: #764ba2;
  transform: none;
}

/* Button */
button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #764ba2;
  color: white;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #667eea;
}

/* Switch */
.switch {
  margin-top: 20px;
  font-size: 14px;
}

.switch a {
  color: #764ba2;
  text-decoration: none;
  font-weight: bold;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatText {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* RESPONSIVE MEDIA QUERY */
@media screen and (max-width: 400px) {
  .container {
    padding: 1.5rem;
    margin-top: 60px;
  }
  .title {
    font-size: 1.5rem;
  }
  .subtitle {
    font-size: 0.9rem;
  }
  .monkey-wrapper {
    top: -200px;
    width: 100px;
    height: 100px;
  }
}
/* LOGIN WRAPPER */
.login-wrapper {
  position: relative;
  width: 90%;        /* Use relative width instead of fixed 350px */
  max-width: 400px;  /* Limit on larger screens */
  margin: 0 auto;    /* Center horizontally */
}

/* CONTAINER CARD */
.container {
  width: 100%;       /* Full width inside wrapper */
  padding: 30px 30px; /* Less padding on small screens */
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}






