#forgotten-password-modal {
    position: absolute;
    top: var(--cf-login-modal-top, 48px);
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    margin: 0;
    width: min(90vw, 280px);
    scroll-margin-top: var(--cf-login-modal-top, 48px);
    background-color: #ffffcc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 12000; /* above central banner and public menu */
}

#forgotten-password-modal .modal-cont {
    position: relative;
}

#forgotten-password-modal h2,
#forgotten-password-modal label {
    text-align: left;
    font-size: 12px;
    margin-bottom: 4px;
    color: #333;
}

.forgotten-challenge-fieldset {
    margin-top: 4px;
    padding: 0;
    border: 1px solid #000;
    border-radius: 4px;
    font-size: 12px;
}

#forgotten-challenge-group {
    display: flex;
    width: 98%;
    max-width: 98%;
    gap: 6px;
    margin: 0;
    padding: 0px 0px;
}

#forgotten-challenge-text {
    font-size: 12px;
    font-weight: bold;
    color: #b00;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

#challenge_answer {
    appearance: textfield;
    width: 4ch;
    max-width: 60px;
    display: inline-block;
    vertical-align: middle;
    padding: 0px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
#challenge_answer::-webkit-outer-spin-button,
#challenge_answer::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#forgotten-password-form input[type="email"],
#forgotten-password-form button {
    width: 98%;
    margin-top: 2px;
    padding: 4px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 12px;
}

#forgotten-password-form button {
    background-color: #007BFF;
    color: white;
    cursor: pointer;
}

#forgotten-password-form button:hover {
    background-color: #0056b3;
}

#forgotten-password-form fieldset {
    background-color: #f4f4eb;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 6px 8px;
    box-sizing: border-box;
}
#forgotten-password-form legend {
    font-weight: bold;
}

#forgotten-password-form button:disabled {
    background-color: #ccc; /* light gray */
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

#email-error {
    color: red;
    margin-top: 10px;
    display: block;
}

#reset-success-message {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: green;
    padding: 10px;
    border-radius: 0;
    margin-top: 15px;
    background: none;
}

#forgotten-error-message {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: red;
    padding: 10px;
    margin-top: 15px;
}


/* ? Close Button */
.close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    color: red;
    background: none;
    border: none;
    cursor: pointer;
}


