/**
 * Login / forgot / reset — form controls & buttons only (stock pjBase layout).
 * Matches admin-ui-global.css; does not change page chrome or card layout.
 */

:root {
    --admin-primary: #f97316;
    --admin-primary-dark: #c75c11;
    --admin-primary-lighter: rgba(249, 115, 22, 0.12);
    --pj-text: #2d3436;
    --pj-text-muted: #636e72;
    --pj-border: #e8e4ef;
    --pj-radius: 8px;
}

body.light-grey-bg {
    background: #f3f4f6;
}

.middle-box.login-box {
    max-width: 680px;
    min-height: 0;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 3px;
    box-shadow: 0 0 30px 0 rgba(15, 23, 42, 0.12);
}

.middle-box.login-box h2 {
    color: #4b5563;
    font-weight: 300;
}

.middle-box.login-box .login-img-background {
    width: 430px;
    background: var(--admin-primary, #f97316);
}

.middle-box.login-box .login-img-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
    filter: sepia(0.18) saturate(0.85) contrast(1.08);
}

.middle-box.login-box .login-img-background:after {
    background: -webkit-linear-gradient(
        49deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(249, 115, 22, 0.86) 50.5%,
        rgba(249, 115, 22, 0.86) 100%
    );
    background: linear-gradient(
        to left bottom,
        rgba(249, 115, 22, 0.86) 0%,
        rgba(249, 115, 22, 0.86) 50%,
        rgba(255, 255, 255, 1) 50.1%,
        rgba(255, 255, 255, 1) 50%
    );
    background: -webkit-linear-gradient(
        49deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 50%,
        color-mix(in srgb, var(--admin-primary, #f97316) 86%, transparent) 50.5%,
        color-mix(in srgb, var(--admin-primary, #f97316) 86%, transparent) 100%
    );
    background: linear-gradient(
        to left bottom,
        color-mix(in srgb, var(--admin-primary, #f97316) 86%, transparent) 0%,
        color-mix(in srgb, var(--admin-primary, #f97316) 86%, transparent) 50%,
        rgba(255, 255, 255, 1) 50.1%,
        rgba(255, 255, 255, 1) 50%
    );
}

.middle-box.login-box .welcome-section {
    width: 30%;
    right: 0;
    top: -45px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(124, 45, 18, 0.25);
}

.middle-box.login-box .welcome-section h3 {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: 0;
}

.middle-box.login-box .welcome-section p {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
}

.middle-box.login-box .form-control,
.middle-box.login-box input.form-control,
.middle-box.login-box select.form-control,
.middle-box.login-box textarea.form-control {
    height: 36px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pj-text, #2d3436);
    background: #fff;
    border: 1px solid #d9dee7 !important;
    border-radius: var(--pj-radius, 8px) !important;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.middle-box.login-box .form-control.form-control-lg {
    height: 36px;
    padding: 6px 12px;
    font-size: 14px;
}

.middle-box.login-box .form-control:focus {
    border-color: var(--admin-primary, #f97316);
    box-shadow: 0 0 0 3px var(--admin-primary-lighter, rgba(249, 115, 22, 0.12));
    outline: none;
}

.middle-box.login-box .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.middle-box.login-box .input-group > .form-control:not(:last-child):not([type='hidden']) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: 0 !important;
}

.middle-box.login-box .input-group > .input-group-addon:first-child + .form-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 0 !important;
}

.middle-box.login-box .input-group > .form-control:last-child {
    border-top-right-radius: var(--pj-radius, 8px) !important;
    border-bottom-right-radius: var(--pj-radius, 8px) !important;
}

.middle-box.login-box .input-group > .form-control:focus {
    border-color: var(--admin-primary, #f97316) !important;
    box-shadow: 0 0 0 2px var(--admin-primary-lighter, rgba(249, 115, 22, 0.12));
}

.middle-box.login-box .input-group > .input-group-addon {
    background: var(--admin-primary-lighter, rgba(249, 115, 22, 0.1));
    border: 1px solid #d9dee7;
    color: var(--admin-primary-dark, #c2570c);
    border-radius: 0 !important;
    padding: 0 12px;
    font-weight: 500;
    height: 36px;
    line-height: 34px;
    font-size: 14px;
    vertical-align: middle;
    text-align: center;
}

.middle-box.login-box .input-group > .input-group-addon:first-child {
    border-top-left-radius: var(--pj-radius, 8px) !important;
    border-bottom-left-radius: var(--pj-radius, 8px) !important;
}

.middle-box.login-box .input-group > .input-group-addon:last-child {
    border-top-right-radius: var(--pj-radius, 8px) !important;
    border-bottom-right-radius: var(--pj-radius, 8px) !important;
}

.middle-box.login-box .input-group > .input-group-addon:first-child + .form-control {
    border-left: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.middle-box.login-box .input-group.input-group-captcha > .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.middle-box.login-box .btn {
    border-radius: var(--pj-radius, 8px);
    font-weight: 500;
    font-size: 13px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        box-shadow 0.15s ease;
}

.middle-box.login-box .btn-lg {
    padding: 10px 20px;
    font-size: 15px;
}

.middle-box.login-box .btn-primary {
    background-color: var(--admin-primary, #f97316);
    border-color: var(--admin-primary, #f97316);
    color: #fff;
    box-shadow: 0 10px 18px rgba(249, 115, 22, 0.22);
    box-shadow: 0 10px 18px color-mix(in srgb, var(--admin-primary, #f97316) 22%, transparent);
}

.middle-box.login-box .btn-primary:hover,
.middle-box.login-box .btn-primary:focus {
    background-color: var(--admin-primary-dark, #c2570c);
    border-color: var(--admin-primary-dark, #c2570c);
    color: #fff;
}

.middle-box.login-box .alert {
    border-radius: var(--pj-radius, 8px);
}

.middle-box.login-box a {
    color: var(--admin-primary, #f97316);
}

.middle-box.login-box a:hover,
.middle-box.login-box a:focus {
    color: var(--admin-primary-dark, #c2570c);
}

.login-box-footer a,
.login-box-footer strong a {
    color: var(--admin-primary-dark, #c75c11) !important;
}

@media (max-width: 767px) {
    .middle-box.login-box {
        max-width: 100%;
        min-height: 0;
        margin: 20px 15px 0;
        padding: 24px;
    }

    .middle-box.login-box h2 {
        margin-top: 0;
    }
}
