/* Global Styles */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(#9f2222,#611616);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Wrapper for full centering */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Full viewport height */
    width: 100%;
}

/* Login Container */
.login-container {
    width: 50vw;
    max-width: 400px;
    min-width: 300px; /* Ensures a reasonable size on smaller screens */
    padding: 3vw;   /* Scales padding based on viewport */
    background: rgba(255, 255, 255, 0.831); /* Subtle transparency effect */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px); /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Effect on Container */
.login-container:hover {
    box-shadow: 0 20px 54px rgba(255, 255, 255, 0.251);
}

/* Heading Styling */
.login-container h1 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #3b0101; /* White for contrast */
    font-weight: bold;
}

/* Form Group */
.form-group {
    width: 100%;
    margin-bottom: 2vh; /* Adjusts spacing based on screen height */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the elements */
  }


/* Input Fields */
.form-group input {
    width: 90%;   /* Input width scales dynamically */
    max-width: 400px; /* Prevents excessive scaling */
    min-width: 250px; /* Ensures usability on small screens */
    padding: 0.6vw 1.5vw;  /* Scales padding with screen */
    border: 1px solid rgb(0, 0, 0);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(245, 245, 245, 0.509);
    color: #000000; /* White text for readability */
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Placeholder Styling */
.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.7);
}

/* Focus Effect for Inputs */
.form-group input:focus {
  border-color: #fa0000;
  box-shadow: 0 0 8px rgba(250, 0, 0, 0.2);
  outline: none;
}

/* Smaller, Centered Button Styling */
.form-group button {
  width: auto;           /* Allow the button to size to its content */
  padding: 12px 25px;     /* Adjust horizontal padding for a smaller button */
  background: linear-gradient(135deg, #ff4141, #ff992b);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 0 auto;        /* Centers the button within its container */
}

/* Button Hover Effect */
.form-group button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.4);
}

/* Flash Messages */
.flashes {
  margin-top: 10px;
  padding: 10px;
}

.flashes li.error {
  color: #d8000c;
  font-weight: bold;
}

/* Adjustments for Smaller Screens */
@media (max-width: 768px) {
    .login-container {
        width: 80vw;  /* Increase width on tablets */
        padding: 4vw;
    }

    .form-group input {
        width: 100%;
        padding: 1.5vw;
    }

    .form-group button {
        width: 70%;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 80vw;  /* Full width on small phones */
        padding: 5vw;
    }

    .form-group input {
        width: 100%;
        padding: 2vw;
    }

    .form-group button {
        width: 80%;
    }
}