

/* Universal styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #FAF9F6;
}

/* Authentication container */
.auth-container {
    text-align: center;
}

/* Logo */
.logo {
    width: 100px;
    margin-bottom: 20px;
}

/* Authentication block */
.auth-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    padding: 30px;
    background-color: #FCFBF9;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Input fields */
.auth-block input[type="text"]{
    width: 100%;
    padding: 10px 40px 10px 10px; /* Add space for the eye icon */
    margin: 10px 0;
    border: 1px solid #212427;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
    color: #333;
}

.auth-block input::placeholder {
    color: #aaa;
}

/* Password container for the password field and the eye icon */
.password-container {
    position: relative;
    width: 100%;
}

.auth-block input[type="password"] {
    width: 100%;
    height: 40px; /* Explicit height to match the container */
    padding: 10px;
    padding-right: 30px; /* Space for the eye icon */
    margin: 10px 0;
    border: 1px solid #212427;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
    line-height: 1.5; /* Ensures text height consistency */
    color: #333;
    box-sizing: border-box;
}

.password-container .eye-icon {
    position: absolute;
    right: 10px;
    top: 25%; /* Centered vertically */
    transform: translateY(-50%); /* Align exactly at center */
    cursor: pointer;
    font-size: 20px; /* Icon size matches the field */
    color: #212427;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px; /* Clickable area width */
    height: 20px; /* Clickable area height */
    pointer-events: all;
}

/* Buttons */
.auth-block button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #FAF9F6;
    background-color: #212427;
    border: 1px solid #212427;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.auth-block button:hover {
    color: #212427;
    background-color: #FAF9F6;
    border: 1px solid #212427;
}

/* Next button for username step */
.next-button {
    margin-top: 15px;
}

/* Forgot password link */
.forgot-password {
    margin-top: 15px;
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Utility class to hide elements */
.hidden {
    display: none;
}

/* Error message styling */
.error-message {
    margin-top: 10px;
    color: #ff0000;
    font-size: 14px;
    text-align: center;
}

/* New password container */
.new-password-container {
    position: relative;
    width: 100%;
}

.new-password-container input {
    margin-top: 10px;
}
