.foster-portal__header .error {
    color: #c62828;
}

.foster-portal__auth {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    width: 100%;
    max-width: 31.25rem;
    margin-inline: auto;
}

.foster-portal__auth.foster-portal__auth--verify .foster-portal__otp {
    order: -2;
}

.foster-portal__auth.foster-portal__auth--verify .foster-portal__resend-note {
    order: -1;
}

.foster-portal__login-form {
    display: block;
    width: 100%;
    margin: 0;
}

.foster-portal__login-form .foster-portal__login-form-container input {
    box-sizing: border-box;
    color: #1d5f65;
}

.foster-portal__login-form .foster-portal__login-form-container input::placeholder {
    opacity: 0.8;
}

.foster-portal__login-form .foster-portal__login-form-container button[type="submit"] {
    inset: 0 0 0 auto;
    height: auto;
    width: auto;
    min-width: 10.625rem;
    white-space: nowrap;
}

.foster-portal__login-form .foster-portal__login-form-container button[type="submit"]:focus-visible {
    background-color: #d27e30;
}

.foster-portal__login-form.foster-portal__login-form--otp {
    max-width: 27.5rem;
    margin-inline: auto;
}

.foster-portal__otp-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.125rem;
}

.foster-portal__otp-form-container button[type="submit"] {
    width: 10.625rem;
    min-height: 2.75rem;
    border: none;
    border-radius: 1.25rem;
    background-color: #f99f4c;
    color: #fefbf6;
    font-size: 1.125rem;
    cursor: pointer;
}

.foster-portal__otp-form-container button[type="submit"]:hover,
.foster-portal__otp-form-container button[type="submit"]:focus-visible {
    background-color: #d27e30;
}

.foster-portal__otp-fields {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.625rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.foster-portal__otp-fields legend {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 0.625rem;
    color: #1d5f65;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.foster-portal__otp .foster-portal__otp-fields input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid rgba(29, 95, 101, 0.35);
    border-radius: 0.625rem;
    background-color: #fff;
    color: #1d5f65;
    font-size: 1.625rem;
    font-weight: 700;
    text-align: center;
}

.foster-portal__otp .foster-portal__otp-fields input:focus {
    border-color: #1d5f65;
    outline: 2px solid transparent;
}

.foster-portal__otp {
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid rgba(29, 95, 101, 0.2);
}

.foster-portal__otp summary {
    width: fit-content;
    margin-inline: auto;
    color: #1d5f65;
    font-size: 1.125rem;
}

.foster-portal__otp[open] summary {
    margin-bottom: 1.125rem;
}

.foster-portal__resend-note {
    font-size: 1rem;
}
