/****************
  *** Captcha ***
  ***************/

.captcha-form-row .captcha-field-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.captcha-form-row label {
    display: block;
    padding: .5rem 0 .25rem;
}

.captcha-form-row input[name="captcha_1"] {
    margin-left: 1rem;
    height: 1.5rem;
}

.captcha-form-row input[type="submit"] {
    margin-left: 1rem;
}

/****************
  *** Forms ***
  ***************/

body.change-form input[type="text"],
body.change-form input[type="email"],
body.change-form input[type="password"],
body.change-form input[type="number"],
body.change-form input[type="url"],
body.change-form textarea,
body.change-form select {
    background-color: rgb(24, 24, 27);
    border: 1px solid rgb(63, 63, 70);
    border-radius: 6px;
    color: rgb(250, 250, 250);
    outline: none;
}

body.change-form input[type="text"]:focus,
body.change-form input[type="email"]:focus,
body.change-form input[type="password"]:focus,
body.change-form input[type="number"]:focus,
body.change-form input[type="url"]:focus,
body.change-form textarea:focus,
body.change-form select:focus {
    border-color: rgb(59, 130, 246);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

body.change-form .module,
body.change-form fieldset.module,
body.change-form .form-row,
body.change-form .aligned .form-row {
    border-radius: 8px;
}

body.change-form .form-row,
body.change-form .aligned .form-row {
    padding: .875rem 1rem;
}

body.change-form.app-auth.model-group #content-main {
    max-width: 72rem;
    width: 100%;
}

.field-is_active input[type="checkbox"],
.field-is_staff input[type="checkbox"],
.field-is_superuser input[type="checkbox"] {
    appearance: none;
    background: rgb(82, 82, 91);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 1.5rem;
    position: relative;
    transition: background-color .15s ease;
    width: 2.75rem;
}

.field-is_active input[type="checkbox"]::after,
.field-is_staff input[type="checkbox"]::after,
.field-is_superuser input[type="checkbox"]::after {
    background: rgb(255, 255, 255);
    border-radius: 999px;
    content: "";
    height: 1rem;
    left: .25rem;
    position: absolute;
    top: .25rem;
    transition: left .15s ease;
    width: 1rem;
}

.field-is_active input[type="checkbox"]:checked,
.field-is_staff input[type="checkbox"]:checked,
.field-is_superuser input[type="checkbox"]:checked {
    background: rgb(34, 197, 94);
}

.field-is_active input[type="checkbox"]:checked::after,
.field-is_staff input[type="checkbox"]:checked::after,
.field-is_superuser input[type="checkbox"]:checked::after {
    left: 1.5rem;
}

.promo-admin-warning {
    border: 1px solid rgb(248, 113, 113);
    border-radius: 8px;
    color: rgb(252, 165, 165);
    margin: 0 0 1rem;
    padding: .875rem 1rem;
}

.promo-admin-warning p {
    margin: 0 0 .625rem;
}

.promo-admin-warning p:last-child {
    margin-bottom: 0;
}

.promo-admin-action {
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.25rem;
    margin: 0 .375rem .375rem 0;
    min-height: 2.5rem;
    padding: .5rem .875rem;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.submit-row .promo-admin-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.promo-admin-action-primary {
    background: rgb(37, 99, 235);
    color: rgb(255, 255, 255);
}

.promo-admin-action-primary:hover {
    background: rgb(59, 130, 246);
}

.promo-admin-action-primary:focus-visible {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .55);
}

.promo-admin-action-danger {
    background: rgb(220, 38, 38);
    color: rgb(255, 255, 255);
}

.promo-admin-action-danger:hover {
    background: rgb(239, 68, 68);
}

.promo-admin-action-danger:focus-visible {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, .55);
}
