html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrolling */
}

.container {
    display: flex;
    justify-content: center;
    padding-top: 50px; /* Adjust this value as needed */
    height: auto; /* Change from 100vh to auto */
}

.login-container {
    background: white; /* Add a white background to the login box */
    padding: 20px; /* Add padding for better spacing */
    border-radius: 10px; /* Round the corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    width: 100%;
    max-width: 400px; /* Limit the maximum width of the login box */
    text-align: center; /* Center the text */
    margin: auto; /* Add this to center the container horizontally */
}

#login-form .form-group {
    margin-bottom: 15px;
}

#login-form .form-group label {
    font-weight: bold; /* Make the labels bold */
}

#login-form .form-control, #login-form .custom-btn {
    width: 100%;
    padding: 10px; /* Add padding inside the input fields */
    border-radius: 5px; /* Round the corners of the input fields */
    border: 1px solid #ccc; /* Add a border to the input fields */
}

#login-form .custom-btn {
    cursor: pointer; /* Change the cursor to a pointer */
    font-size: 16px; /* Increase the font size */
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    width: 100%;
    margin-bottom: 15px; /* Add some margin at the bottom */
    display: none; /* Default to hidden */
}

.shake {
    animation: shake 0.5s;
    animation-iteration-count: 1;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Add this to the existing CSS in `app/static/css/login_style.css` */
#reset-form .btn {
    display: block;
    margin: 0 auto; /* Center the button horizontally */
}