@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans&display=swap');

/* Global styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
    overflow: visible; /* Allow content to overflow */
}

.logo-container {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.container h2 {
    margin-top: 60px; /* Adjust margin to account for the logo */
    margin-bottom: 30px;
    color: #333;
}

.input-group {
    margin-bottom: 20px;
    width: calc(100% - 20px);
}

.input-group input:focus,
.input-group input:hover {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(2, 124, 255, 0.25);
}

.input-group label {
    display: block;
    text-align: left;
    color: #666;
    margin-bottom: 5px;
}

.input-group input {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 20px; /* Rounded corners */
    font-size: 16px;
}

.input-group input::placeholder {
    color: #999;
}

.input-group .fas {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px; /* Adjusted position */
    color: #142043; /* Changed color */
}

.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    cursor: pointer;
    color: #999;
}

input[type="submit"] {
    background-color: #142043; /* Changed background color */
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #f2932f; /* Changed hover background color */
    color: #fff;
}

/* Add styles for left and right links */
.links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.left-link {
    order: 1;
}

.right-link {
    order: 2;
}

.links a {
    text-decoration: none;
    color:  #142043; /* Changed link color */
}

.icon-input {
    position: relative;
}

.icon-input input {
    padding-right: 40px; /* Adjust padding to fit the eye icon */
}

.icon-input .toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.error-msg {
    color: red;
    display: none; /* Initially hidden */
    margin-top: 10px;
    text-align: left;
}

@media only screen and (max-width: 765px) {
    .container {
        width: 70%;
    }
}