
/* ======================================================
   J&A LOGIN IDENTITY
   ====================================================== */

.ja-login-identity {
    margin:
        -1rem auto
        1.6rem;

    text-align: center;
}

.ja-login-company {
    color: #ffffff;

    font-size: 1.35rem;
    line-height: 1.2;

    font-weight: 700;
    letter-spacing: -.02em;
}

.ja-login-tagline {
    margin-top: .25rem;

    color: rgba(255,255,255,.82);

    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .035em;
}

.ja-login-caption {
    display: inline-flex;

    margin-top: .75rem;
    padding: .3rem .65rem;

    border:
        1px solid rgba(255,255,255,.14);

    border-radius: 999px;

    background:
        rgba(255,255,255,.07);

    color:
        rgba(255,255,255,.62);

    font-size: .7rem;

    text-transform: uppercase;
    letter-spacing: .11em;
}


/* ======================================================
   USER AVATAR
   ====================================================== */

#layout-sidebar .header-title.username {
    display: flex !important;

    align-items: center;
    gap: .65rem;

    min-width: 0;
}

.ja-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #0796d8,
            #045c91
        );

    box-shadow:
        0 5px 14px
        rgba(7,150,216,.22);

    font-size: .72rem;
    font-weight: 750;
    line-height: 1;

    letter-spacing: .04em;

    padding: 0;
    margin: 0;

    text-align: center;
    vertical-align: middle;
}


/* Mobile */

@media (max-width: 480px) {
    .ja-login-company {
        font-size: 1.15rem;
    }

    .ja-login-tagline {
        font-size: .82rem;
    }

    .ja-user-avatar {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}

/* ============================================================
   LOGIN INPUTS - dark corporate style
   ============================================================ */

body.task-login #rcmloginuser,
body.task-login #rcmloginpwd,
body.task-login #rcmloginhost,
body.task-login input.form-control {
    background: #0b1f36 !important;
    color: #ffffff !important;
    border: 1px solid rgba(90, 170, 255, 0.35) !important;
    box-shadow: none !important;
}

body.task-login #rcmloginuser::placeholder,
body.task-login #rcmloginpwd::placeholder,
body.task-login #rcmloginhost::placeholder,
body.task-login input.form-control::placeholder {
    color: rgba(255,255,255,0.68) !important;
}

body.task-login #rcmloginuser:focus,
body.task-login #rcmloginpwd:focus,
body.task-login #rcmloginhost:focus,
body.task-login input.form-control:focus {
    background: #102947 !important;
    color: #ffffff !important;
    border-color: #3ea6ff !important;
    box-shadow: 0 0 0 3px rgba(62,166,255,0.18) !important;
    outline: none !important;
}

/* Browser autofill fix */
body.task-login input:-webkit-autofill,
body.task-login input:-webkit-autofill:hover,
body.task-login input:-webkit-autofill:focus,
body.task-login input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #0b1f36 inset !important;
    transition: background-color 9999s ease-in-out 0s;
    caret-color: #ffffff !important;
}

/* ============================================================
   J&A AUTOMATION - LOGIN GLASS / INDUSTRIAL CORPORATE THEME
   ============================================================ */

/* ------------------------------------------------------------
   1. Industrial dark gradient background
   ------------------------------------------------------------ */

body.task-login {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 18% 22%,
            rgba(7, 150, 216, 0.18) 0,
            rgba(7, 150, 216, 0.06) 18%,
            transparent 38%
        ),
        radial-gradient(
            circle at 82% 78%,
            rgba(0, 92, 145, 0.20) 0,
            rgba(0, 92, 145, 0.05) 22%,
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #07111d 0%,
            #0a1728 38%,
            #0d2239 68%,
            #081522 100%
        ) !important;

    background-attachment: fixed !important;
}


/* subtle technical grid effect */

body.task-login::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.65),
            rgba(0,0,0,.18)
        );

    z-index: 0;
}


/* ------------------------------------------------------------
   2. Glass login panel
   ------------------------------------------------------------ */

body.task-login #login-form {
    position: relative;
    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(15, 34, 57, 0.82),
            rgba(8, 23, 40, 0.78)
        ) !important;

    border:
        1px solid
        rgba(105, 196, 255, 0.22) !important;

    border-radius: 22px !important;

    backdrop-filter:
        blur(22px)
        saturate(135%);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(135%);

    box-shadow:
        0 24px 80px
        rgba(0,0,0,.42),
        0 8px 24px
        rgba(0,0,0,.24),
        inset 0 1px 0
        rgba(255,255,255,.06),
        0 0 0 1px
        rgba(7,150,216,.05) !important;

    padding: 2rem 2rem 1.8rem !important;
}


/* soft cyan edge glow */

body.task-login #login-form::before {
    content: "";
    position: absolute;
    inset: -1px;

    border-radius: 22px;

    padding: 1px;

    background:
        linear-gradient(
            135deg,
            rgba(57, 189, 255, .32),
            rgba(57, 189, 255, .06) 35%,
            rgba(255,255,255,.03) 60%,
            rgba(7,150,216,.22)
        );

    -webkit-mask:
        linear-gradient(#fff 0 0)
        content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}


/* ------------------------------------------------------------
   3. Logo / corporate identity
   ------------------------------------------------------------ */

body.task-login #logo {
    filter:
        drop-shadow(
            0 8px 22px
            rgba(7,150,216,.18)
        );
}

body.task-login .ja-login-company {
    color: #ffffff !important;

    font-weight: 750;
    letter-spacing: .01em;

    text-shadow:
        0 2px 12px
        rgba(0,0,0,.30);
}

body.task-login .ja-login-tagline {
    color: #9bdcff !important;

    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.task-login .ja-login-caption {
    color: rgba(226, 238, 248, .72) !important;
}


/* ------------------------------------------------------------
   4. Elegant labels
   ------------------------------------------------------------ */

body.task-login label {
    color: #dceaf6 !important;

    font-size: .78rem !important;
    font-weight: 650 !important;

    letter-spacing: .055em !important;
    text-transform: uppercase !important;

    margin-bottom: .42rem !important;
}


/* secondary helper text */

body.task-login .form-text,
body.task-login small,
body.task-login .hint {
    color: rgba(210, 226, 240, .62) !important;
}


/* ------------------------------------------------------------
   5. Dark input fields
   ------------------------------------------------------------ */

body.task-login #rcmloginuser,
body.task-login #rcmloginpwd,
body.task-login #rcmloginhost,
body.task-login input.form-control,
body.task-login select.form-control {
    min-height: 48px;

    background:
        linear-gradient(
            180deg,
            rgba(7, 22, 38, .92),
            rgba(10, 31, 53, .92)
        ) !important;

    color: #ffffff !important;

    border:
        1px solid
        rgba(112, 183, 230, .28) !important;

    border-radius: 12px !important;

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.025),
        0 4px 16px
        rgba(0,0,0,.14) !important;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        transform .18s ease;
}


body.task-login #rcmloginuser:hover,
body.task-login #rcmloginpwd:hover,
body.task-login input.form-control:hover {
    border-color:
        rgba(99, 197, 255, .46) !important;
}


body.task-login #rcmloginuser:focus,
body.task-login #rcmloginpwd:focus,
body.task-login #rcmloginhost:focus,
body.task-login input.form-control:focus,
body.task-login select.form-control:focus {
    background:
        linear-gradient(
            180deg,
            rgba(10, 31, 53, .98),
            rgba(13, 39, 66, .98)
        ) !important;

    color: #ffffff !important;

    border-color:
        #4db8f3 !important;

    box-shadow:
        0 0 0 3px
        rgba(7,150,216,.17),
        0 8px 24px
        rgba(0,0,0,.18) !important;

    outline: none !important;
}


/* placeholders */

body.task-login input::placeholder {
    color:
        rgba(219, 233, 245, .50) !important;
}


/* browser autofill */

body.task-login input:-webkit-autofill,
body.task-login input:-webkit-autofill:hover,
body.task-login input:-webkit-autofill:focus,
body.task-login input:-webkit-autofill:active {
    -webkit-text-fill-color:
        #ffffff !important;

    -webkit-box-shadow:
        0 0 0 1000px
        #0b2037 inset !important;

    caret-color:
        #ffffff !important;

    transition:
        background-color 9999s
        ease-in-out 0s;
}


/* ------------------------------------------------------------
   6. Corporate blue login button
   ------------------------------------------------------------ */

body.task-login #rcmloginsubmit,
body.task-login button[type="submit"],
body.task-login input[type="submit"] {
    min-height: 48px;

    border: 0 !important;
    border-radius: 12px !important;

    color: #ffffff !important;

    font-size: .92rem !important;
    font-weight: 700 !important;

    letter-spacing: .025em;

    background:
        linear-gradient(
            135deg,
            #0796d8 0%,
            #057fc0 45%,
            #045f96 100%
        ) !important;

    box-shadow:
        0 10px 28px
        rgba(7,150,216,.28),
        inset 0 1px 0
        rgba(255,255,255,.14) !important;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
}


body.task-login #rcmloginsubmit:hover,
body.task-login button[type="submit"]:hover,
body.task-login input[type="submit"]:hover {
    filter: brightness(1.08);

    transform:
        translateY(-1px);

    box-shadow:
        0 14px 34px
        rgba(7,150,216,.36),
        inset 0 1px 0
        rgba(255,255,255,.16) !important;
}


body.task-login #rcmloginsubmit:active,
body.task-login button[type="submit"]:active,
body.task-login input[type="submit"]:active {
    transform:
        translateY(0);

    box-shadow:
        0 7px 18px
        rgba(7,150,216,.26) !important;
}


body.task-login #rcmloginsubmit:focus-visible,
body.task-login button[type="submit"]:focus-visible,
body.task-login input[type="submit"]:focus-visible {
    outline:
        2px solid #7dd3fc !important;

    outline-offset:
        3px !important;
}


/* ------------------------------------------------------------
   7. Login footer / links
   ------------------------------------------------------------ */

body.task-login a {
    color: #72cdf7 !important;
}

body.task-login a:hover {
    color: #a8e3ff !important;
}


/* ------------------------------------------------------------
   8. Mobile polish
   ------------------------------------------------------------ */

@media (max-width: 600px) {

    body.task-login #login-form {
        width:
            calc(100% - 1.25rem) !important;

        padding:
            1.5rem 1.15rem 1.35rem !important;

        border-radius:
            18px !important;
    }

    body.task-login #login-form::before {
        border-radius:
            18px;
    }

    body.task-login #rcmloginuser,
    body.task-login #rcmloginpwd,
    body.task-login input.form-control,
    body.task-login #rcmloginsubmit,
    body.task-login button[type="submit"] {
        min-height:
            46px;
    }
}

