body {
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    /* Optional: Add a transition to the body itself for very subtle background changes if any in future */
    /* transition: background-color 0.5s ease; */
}

/* Keyframes for the form container's entrance animation */
@keyframes fadeInZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.95); /* Start slightly smaller */
        filter: blur(5px); /* Start slightly blurred */
    }
    100% {
        opacity: 1;
        transform: scale(1); /* End at normal size */
        filter: blur(0); /* Clear blur */
    }
}

.background-image {
    background-image: url('./images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

.signup-container {
    background-color: #f4c154;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(255, 218, 218, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    z-index: 2;
    position: relative;

    /* ADDED: Entrance animation for the container */
    opacity: 0; /* Start invisible for the animation */
    animation: fadeInZoomIn 0.7s ease-out forwards; /* 0.7s duration, smooth easing, stays at end state */
}

h2 {
    color: #6C5544;
    margin-bottom: 30px;
    /* Optional: Add a slight transition for color if it changes on hover/active in future */
    /* transition: color 0.3s ease; */
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
    /* Optional: Add a subtle transition for color if it changes on focus of input */
    /* transition: color 0.3s ease; */
}

input {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    /* ADDED/IMPROVED: Smooth transition for border and shadow */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #FFBB6D;
    box-shadow: 0 0 8px rgba(255, 187, 109, 0.7); /* Slightly stronger shadow on focus */
}

.signup-button {
    background-color: #f5dfc7;
    color: #000000;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    width: 100%;
    /* Already had transition, ensuring it's comprehensive */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.signup-button:hover {
    background-color: #cca05e;
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25); /* More pronounced shadow */
}

.login-prompt,
.back-home-prompt {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

.login-prompt a,
.back-home-prompt a {
    color: #6C5544;
    text-decoration: none;
    font-weight: bold;
    /* Already had transition, ensuring it's comprehensive */
    transition: color 0.3s ease, transform 0.2s ease;
}

.login-prompt a:hover,
.back-home-prompt a:hover {
    color: #FFBB6D;
    transform: translateY(-1px); /* Slight lift on hover */
}
@media screen and (max-width: 600px) {
    .signup-container {
        padding: 25px; /* Reduce padding for smaller screens */
        border-radius: 10px; /* Slightly less rounded corners */
        margin: 20px; /* Add some margin around the container to prevent it from touching edges */
    }

    h2 {
        font-size: 1.8em; /* Adjust heading size */
        margin-bottom: 20px;
    }

    label {
        font-size: 0.9em;
    }

    input {
        padding: 8px; /* Slightly smaller input padding */
        font-size: 0.9rem;
    }

    .signup-button {
        padding: 10px 15px; /* Smaller button padding */
        font-size: 1rem;
    }
}
.message-box {
      margin-top: 15px;
      padding: 10px;
      border-radius: 5px;
      font-weight: bold;
      text-align: center;
      display: none;
    }

    .message-box.error {
      background-color: #ffe0e0;
      color: #b30000;
      border: 1px solid #b30000;
    }

    .message-box.success {
      background-color: #e0ffe0;
      color: #007700;
      border: 1px solid #007700;
    }
    /* --- Mobile & Tablet: fully responsive signup form --- */
@media screen and (max-width: 768px) {
  body {
    padding: 15px; /* less padding to fit smaller screens */
  }

  .signup-container {
    width: 100%;
    max-width: 350px;    /* slightly narrower to fit most phones */
    padding: 25px;
    border-radius: 12px;
    margin: 20px auto;
  }

  h2 {
    font-size: 1.6em;
    margin-bottom: 18px;
  }

  label {
    font-size: 0.9em;
  }

  input {
    width: 100%;
    padding: 8px;
    font-size: 0.9rem;
  }

  .signup-button {
    padding: 10px;
    font-size: 1rem;
  }

  .message-box {
    font-size: 0.9rem;
  }
}

/* Extra-tight layout for very small screens like old phones */
@media screen and (max-width: 400px) {
  .signup-container {
    padding: 20px;
    margin: 15px auto;
  }

  h2 {
    font-size: 1.4em;
  }

  input {
    font-size: 0.85rem;
    padding: 7px;
  }

  .signup-button {
    font-size: 0.95rem;
    padding: 9px;
  }
}
