/* ===============================
   Layout & Section Styling
================================= */
main {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

section {
    background-color: white;
    border: 1px solid white;
    box-shadow: 0 0.25rem 0.75rem rgb(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    width: 100%;
    max-width: 25rem;
    padding: 2rem;
    margin: 0.625rem 0.625rem 20vh;
    box-sizing: border-box;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: .25em;
    color: black;
}

/* ===============================
   Button
================================= */
button {
    width: 100%;
}

/* ===============================
   Form Elements
================================= */
.inputBox {
    margin-bottom: 1.5rem;
}

.inputBox label {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
    color: white;
}

.inputBox input,
.password-wrapper input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

.inputBox input:focus,
.password-wrapper input:focus {
    border-color: lightgrey;
    outline: none;
}

/* Password wrapper to align input and eye icon */
.password-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* Password input field */
.password-input {
    flex-grow: 1; /* Allow password input to take all available space */
}

.password-input input {
    width: 100%;
}

.password-eye-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
}

.password-eye-icon img {
    cursor: pointer;
    width: 1.25rem;
    height: 1.25rem;
}

/* ===============================
   Remember Me Styling
================================= */
.rememberMe {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: black;
}

.rememberMe label {
    margin-right: 0.75rem; /* Space between label and checkbox */
    font-size: 1rem;
}

.rememberMe input {
    width: 18px; /* Standard checkbox width */
    height: 18px; /* Standard checkbox height */
    margin-right: 0.5rem; /* Space between checkbox and label */
    appearance: none; /* Remove default styles */
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.rememberMe input:checked {
    background-color: #4CAF50; /* Green background when checked */
    border-color: #4CAF50; /* Border color when checked */
    box-shadow: 0 0 5px rgba(0, 128, 0, 0.5); /* Optional shadow for better feedback */
}

.rememberMe input:checked::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    margin: 2px auto;
    background-color: white;
    border-radius: 50%;
}

.rememberMe input:hover {
    border-color: #4CAF50; /* Border color on hover */
    cursor: pointer;
}

.rememberMe input:focus {
    outline: none;
    box-shadow: 0 0 3px 2px rgba(0, 128, 0, 0.3); /* Focus effect */
}

.rememberMe input:disabled {
    background-color: #f1f1f1;
    border-color: #ccc;
    cursor: not-allowed;
}

.rememberMe .remember-text {
    font-size: 1rem;
    color: black;
}

/* ===============================
   Responsive Tweaks
================================= */
@media (max-width: 48em) { /* 768px */
    main {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    section p {
        font-size: 1rem;
    }

    .inputBox input {
        padding: 0.5rem;
    }

    button {
        padding: 0.75rem;
    }
}
