@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: radial-gradient(31.37% 31.37% at 9.2% 68.63%, rgba(0, 200, 191, 0.0795) 0%, rgba(6, 16, 25, 0) 100%), radial-gradient(32.73% 32.73% at 87.26% 49.95%, rgba(0, 200, 191, 0.0795) 0%, rgba(6, 16, 25, 0) 100%), #061019;
    flex-direction: column;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: auto;
}

.container {
    position: relative;
    width: 430px;
    height: 502px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(250, 249, 246, 0.16);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

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

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

h2 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 41px; /* was 37.5px */
    margin-top: 0;
    margin-bottom: 4px;
    color: #FFFFFF;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 17px; /* was 15px */
    color: rgb(255, 255, 255, 0.55);
    margin-top: 4px;
    margin-bottom: 0;
}

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

.input-container {
    position: relative;
}

.input-container input {
    box-sizing: border-box;
    width: 100%;
    height: 45px;
    padding-left: 10px;
    font-family: 'Montserrat', sans-serif;
	line-height: 14px;
    color: #FFFFFF;
    transition: box-shadow 0.3s;
    outline: none;
    background-color: #00000000;
    border-radius: 6px;
    border: 1px solid rgba(250, 249, 246, 0.3);
    font-size: 14px;
}


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

.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', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    color: #000000;
    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: 8px;
    width: 115px;
}

.forgot-password-link:hover {
    color: rgba(12, 12, 12, 0.8);
}

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

.input-container input::placeholder {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: rgba(250, 249, 246, 0.3);
}

.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: #000000; /* Background color from your Rectangle 2 spec */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.25); /* Box shadow from your Rectangle 2 spec */
    border-radius: 8px; /* Border radius from your Rectangle 2 spec */
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px; /* 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: 1px solid #000000;
}

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

.account-text {
    text-align: center; /* Centers the text below the button */
    margin-top: 23px; /* Space between the button and the text */
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;
}

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

.open-account-link:hover {
    color: rgba(12, 12, 12, 0.8);
}

.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;
        /* Increased padding for more space around the content */
        /* Increased top padding to make more space for the logo */
        padding: 90px 20px 20px;
    }

    .logo {
        display: none;
    }
    /* Show the mobile logo */
    .logo-mobile {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 60px; /* 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: 23px; /* Increased margin top for more space above the button container */
    }

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

}