﻿ 
/* Resetting default styling and setting font-family */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #626cd6;
    overflow: hidden; /* Prevent scrolling */
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.login_form {
    width: 100%;
    max-width: 435px;
    background: #fff;
    border-radius: 6px;
    padding: 41px 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-bottom: 150px;
}

    .login_form h3 {
        font-size: 20px;
    }

    .login_form p {
        font-weight: 500;
    }

.input_box {
    text-align: left;
    width: 100%;
}

    .input_box label {
        display: block;
        font-weight: 500;
        margin-bottom: 8px;
    }

    .input_box input {
        width: 100%;
        height: 50px;
        border: 1px solid #dadaf2;
        border-radius: 5px;
        outline: none;
        background: #f8f8fb;
        font-size: 17px;
        padding: 0 20px;
        margin-bottom: 20px;
        transition: 0.2s ease;
    }

        .input_box input:focus {
            border-color: #626cd6;
        }

a {
    text-decoration: none;
    color: #626cd6;
    font-weight: 500;
}

    a:hover {
        text-decoration: underline;
    }

button {
    width: 100%;
    height: 50px;
    border-radius: 5px;
    border: none;
    outline: none;
    background: #626cd6;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s ease;
}

    button:hover {
        background: #4954d0;
    }

.error-message {
    color: red;
    background-color: #ffe6e6;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    display: none; /* Hide by default */
}

.logo {
    text-align: center;
    margin-bottom: 10px; /* Add spacing between the logo and the form */
}

.logo img {
    max-width: 150px; /* Adjust size */
    height: auto;
}

/* Footer Styling */
footer {
    width: 100%;
    text-align: center;
    color: white;
    font-size: 14px;
    position: absolute;
    bottom: 10px;
}
 
/* Responsive Design */
@media screen and (max-width: 480px) {
    .login_form {
        padding: 30px;
        margin: 20px; /* Add margin to create space */
        width: 90%; /* Reduce width to leave more space on sides */
        margin-bottom: 150px;
    }

    .input_box input {
        height: 45px;
        font-size: 16px;
    }

    .logo img {
        max-width: 120px; /* Adjust for smaller screens */
    }

    button {
        height: 45px;
        font-size: 16px;
    }
}

