@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: #224499;
}

body {
    background-color: #224499;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.box {
    width: 450px;
    height: 500px;
    background: #fff;
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.1),
                -2px -0px 15px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.wrapper {
    position: absolute;
    width: 455px;
    height: 500px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.53);
    box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.115),
                -2px -0px 15px 2px rgba(0, 0, 0, 0.054);
    transform: rotate(5deg);
}

.header {
    display: flex;
    justify-content: center; /* Center the logo */
    margin-bottom: 20px; /* Space below the logo */
}

.form-logo {
    width: 45%;
    height: 50%;
    border-radius: 5px;
}

.header header {
    display: flex;
    justify-content: right;
}

header img {
    width: 25px;
}

.header p {
    font-size: 25px;
    font-weight: 800;
    margin-top: 10px;
}

.input-box {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
    position: relative;
}

i {
    font-size: 22px;
    position: absolute;
    top: 35px;
    right: 12px;
    color: #224499;
}

input {
    height: 40px;
    border: 2px solid #224499;
    border-radius: 7px;
    margin: 7px 0;
    outline: none;
}

.input-field {
    font-weight: 500;
    padding: 0 10px;
    font-size: 17px;
    color: #224499;
    background: transparent;
    transition: all .3s ease-in-out;
}

.input-field:focus {
    border: 2px solid rgb(89, 53, 180);
}

.input-field:focus ~ i {
    color: rgb(89, 53, 180);
}

.input-submit {
    margin-top: 20px;
    background: #224499;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.input-submit:hover {
    background: #122b71;
}

.bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 25px;
}

.bottom span a {
    color: #727374;
    text-decoration: none;
}

.bottom span a:hover {
    text-decoration: underline;
}

.design-credit {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #122b71; /* Match this to the theme color if desired */
    font-family: 'Nunito', sans-serif;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .box {
        width: 90%; /* Adjust width for smaller screens */
        max-width: 350px; /* Set a max width for the box */
        height: auto; /* Allow height to adjust based on content */
        padding: 20px; /* Reduce padding for better fit */
    }

    .header p {
        font-size: 20px; /* Smaller font size for header */
    }
    .wrapper {
        width: 340px; /* Adjusted width for the wrapper */
        height: 450px; /* Adjusted height for the wrapper */
    }

    .input-field {
        font-size: 15px; /* Smaller font size for input fields */
    }

    .input-submit {
        padding: 10px; /* Increase button padding for easier clicking */
    }
}

@media (max-width: 480px) {
    .box {
        max-width: 280px; /* Further reduce width for very small screens */
    }

    .header p {
        font-size: 18px; /* Smaller font size for header on very small screens */
    }
    .wrapper {
        width: 270px; /* Further reduce width for the wrapper */
        height: 400px; /* Further reduce height for the wrapper */
    }

    input {
        height: 35px; /* Smaller height for input fields */
    }

    .input-field {
        font-size: 14px; /* Smaller font size for input fields */
    }
}
