form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    position: relative;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Parent of the input + cleartext button combo */

.input-label {
    color: #00294d;
    font-weight: 600;
    font-size: 14px;
    flex-grow: 1;
}

#username {
    flex-grow: 2;
}

.input-group > div {
    display: inline-flex;
    flex-grow: 2;
    gap: 0.25rem;
}

.input-group > div > div {
    display: inline-flex;
}

.input-input {
    border-radius: 4px;
    border: 1px solid #c0ceeb;
    padding: 8px 16px;
    font-size: 14px;
    flex-grow: 1;
    width: 13rem;
}

.input-group > div > .input-input {
    width: 8.3rem;
}

#kc-form-login #password {
    width: 2.3rem;
}

[data-password-toggle]::before {
    content: "👁";
}

#input-error {
    color: darkred;
    display: block;
}

.btn,
.btn-primary,
[data-password-toggle],
#kc-registration a {
    border-radius: 4px;
    border: none;
    padding: 8px 16px;
    transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

#kc-registration {
    font-size: 14px;
}

#kc-registration a {
    margin-left: 0.5rem;
}

.btn,
[data-password-toggle],
#kc-registration a {
    color: rgb(0, 99, 166);
    background-color: white;
    border: 1px solid rgb(192, 206, 235);
}

.btn:hover,
[data-password-toggle]:hover,
#kc-registration a:hover {
    background-color: #eef4ff;
}

.btn-primary {
    color: oklch(0.968 0.007 247.896);
    background-color: rgb(2, 78, 162);
    border: none;
}

.btn-primary:hover {
    background-color: #267dc0;
    color: oklch(0.968 0.007 247.896);
}

#kc-form-buttons {
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

#kc-form-options + div {
    justify-content: right;
}

#kc-page-title {
    text-align: center;
}

#kc-info {
    text-align: center;
}

#kc-info p {
    text-align: left;
}

.input-label-wrapper,
.input-input + span[id],
.input-label-wrapper + div > span {
    color: darkred;
}

.input-group .input-label-wrapper label {
    color: #00294d;
}

.input-label-wrapper.subtitle {
    width: 100%;
    text-align: center;
}

#kc-registration-terms-text {
    display: inline-block;
}

#kc-register-form .input-input {
    width: 100%;
}

#kc-register-form input[type="password"] {
    width: 8.3rem;
}

#kc-register-form .input-label-wrapper {
    width: 9rem;
    flex-grow: 0;
}

#kc-register-form .input-label-wrapper + div {
    flex-direction: column;
}

#kc-register-form .input-label-wrapper + div > div {
    gap: 0.25rem;
    flex-grow: 1;
}

#kc-register-form .input-label {
    flex-grow: 0;
}

#kc-register-form .form-group + .form-group .input-label-wrapper {
    width: 100%;
}
