@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

body {
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#caps-lock-status {
    display: none; /* Ensure this is initially hidden */
    text-align: center;
    color: red;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-top: 5px;
    width: 100%;
    padding: 5px 0;
    border-radius: 5px;
    background-color: #FFCCCB;
}




html {
    position: relative;
    min-height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(109.96deg, #FFFFFF 4.4%, #A9C038 100.71%);
    flex-direction: column;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: auto;
    margin: 15px;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    width: 429.75px;
    height: 501.75px;
    border-radius: 7.5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.main-subcontainer {
    display: flex; /* Use flexbox to organize children */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    width: 381px;
    height: 384.75px;
}

.heading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h2 {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 41.25px; /* was 37.5px */
    margin-top: 0;
    margin-bottom: 3.75px;
}

p {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 16.5px; /* was 15px */
    color: #494949;
    margin-top: 3.75px;
    margin-bottom: 0;
}

.fields-container {
    width: 100%;
    padding-top: 52.5px;
}

.input-container {
    position: relative;
}

.input-container input {
    box-sizing: border-box;
    width: 100%;
    height: 45px;
    padding-left: 22.5px;
    font-family: 'Montserrat';
    font-size: 16px;
	line-height: 13.5px;
    color: #494949;
    border-radius: 7.5px;
    box-shadow: 0px 0px 7.5px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s;
    outline: none;
    border: none;
}


.input-container:not(:last-child) {
    margin-bottom: 22.5px;
}

.input-container input:focus::placeholder {
    color: transparent; /* Optionally hide the placeholder on focus */
}

.forgot-password-container {
    width: 100%;
    text-align: end;
}

.forgot-password-link {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 11.25px;
    color: #161618;
    display: inline-block; /* Change to inline-block to limit the clickable area */
    text-decoration: none; /* Ensures the link is not underlined */
    cursor: pointer; /* Changes cursor to indicate clickable link */
    margin-top: 7.5px;
    width: 115.2975px;
}

.forgot-password-link:hover {
    color: #161618cc;
}

.input-container input:focus {
    box-shadow: 0px 0px 7.5px rgba(0, 0, 0, 0.5); /* slightly darker shadow for subtle focus */
}

.input-container input::placeholder {
    color: #494949; /* Placeholder text color */
	font-size: 11.5px;
}

.input-container input:focus::placeholder {
    color: transparent; /* Hide placeholder on focus */
}

.toggle-password {
    transform: translateY(-50%);
    cursor: pointer;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the buttons horizontally in the container */
    width: 100%; /* Ensure it spans the full width of the container */
    margin-top: 36px; /* Pushes the container to the bottom of the parent */
}

button {
    width: 100%; /* Maintains relative width for responsiveness */
    height: 45px; /* Height from your Rectangle 2 spec */
    background: #161618; /* Background color from your Rectangle 2 spec */
    box-shadow: 0px 0px 7.5px rgba(0, 0, 0, 0.25); /* Box shadow from your Rectangle 2 spec */
    border-radius: 7.5px; /* Border radius from your Rectangle 2 spec */
    color: #FFFFFF;
    font-family: 'Montserrat';
    font-size: 14.85px; /* This might need to be increased to match the larger button size */
    line-height: 12px; /* This might need to be increased to match the larger button size */
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effects */
    border: solid; /* No border for the button */
    border-color: #161618;
    border-width: 1px;
}

button:hover {
    background: #8fa02e00; /* Darker shade for hover state */
    color: #161618;
    border-color: #161618;
    border-width: 1px;
}

.account-text {
    font-family: 'Montserrat';
    font-size: 11.25px;
    line-height: 13.5px;
    color: #494949;
    text-align: center; /* Centers the text below the button */
    margin-top: 22.5px; /* Space between the button and the text */
    font-weight: 400;
}

.open-account-link {
    font-weight: 600;
    color: #161618;
    text-decoration: none; /* Removes underline from the link */
}

.open-account-link:hover {
    color: #161618cc;
}

.logo-mobile {
    display: none;
}

@media (max-width: 650px) {

	body {
    	height: 100%;
    	margin: 0;
    	display: flex;
    	justify-content: center;
    	align-items: center;
	}	

    .container {
        width: 80%; /* Increased from 67.5% to make the container wider */
        height: auto;
    	margin: auto;
      	padding: 20px 20px 20px 20px;  /* Increased padding for more space around the content */
        padding-top: 90px; /* Increased top padding to make more space for the logo */
    }

    .logo {
        display: none;
    }
    /* Show the mobile logo */
    .logo-mobile {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 90px; /* Increased width for a bigger logo */
        height: auto;
        margin: 20px; /* Increased margin for more space around the logo */
    }

    .main-subcontainer, .heading-container {
        width: 100%; /* Ensure these containers take full width */
        padding: 0 20px; /* Increased padding for more space inside the containers */
    }

    h2 {
        font-size: 33px; /* Increased font size for larger headings */
    }

    p {
        font-size: 15px; /* Increased font size for larger paragraph text */
    }

    .input-container input, button {
        height: 45px; /* Increased height for larger form elements */
		font-size: 16px;
    }

    .button-container {
        margin-top: 22.5px; /* Increased margin top for more space above the button container */
    }

	.input-container input::placeholder {
        font-size: 11.5px; /* Smaller font size for form inputs and links */
    }

}