:root {
    --tk-navy: #06224f;
    --tk-navy-hover: #0b3274;
    --tk-text: #10233f;
    --tk-muted: #5f6b7b;
    --tk-border: #c9d1dc;
    --tk-focus: #1769e0;
    --tk-white: #fff;
}

html,
body.task-login {
    min-height: 100%;
    background: var(--tk-white) !important;
    color: var(--tk-text);
}

body.task-login {
    margin: 0;
    overflow: hidden;
    font-family: "Roboto", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.task-login #layout {
    display: grid !important;
    grid-template-rows: 108px minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0 !important;
    background: var(--tk-white);
}

.tk-brandbar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    height: 108px;
    padding: 10px clamp(30px, 5vw, 74px);
    border-bottom: 1px solid #dbe1e9;
    background: rgba(255, 255, 255, 0.98);
}

.tk-brandbar img {
    display: block;
    width: 116px;
    height: 88px;
    object-fit: contain;
}

.task-login #layout-content {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(440px, 46%) minmax(0, 54%);
    align-items: stretch;
    width: 100% !important;
    max-width: none !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: var(--tk-white) !important;
    box-shadow: none !important;
    overflow: hidden;
}

.task-login #layout-content #logo {
    display: none !important;
}

.tk-login-panel {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 48px clamp(42px, 6vw, 92px);
    background: #fff;
}

.tk-login-inner {
    width: min(100%, 448px);
    margin: 0 auto;
}

.tk-login-copy {
    margin: 0 0 34px;
}

.tk-login-copy h2 {
    margin: 0;
    color: var(--tk-navy);
    font-size: clamp(28px, 2.25vw, 36px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.tk-login-copy p {
    margin: 13px 0 0;
    color: #39485c;
    font-size: 16px;
    line-height: 1.5;
}

.task-login #login-form {
    display: block;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
    text-align: left;
}

.task-login #login-form table,
.task-login #login-form tbody,
.task-login #login-form tr,
.task-login #login-form td {
    display: block;
    width: 100%;
    max-width: none;
}

.task-login #login-form table {
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.task-login #login-form tr {
    margin: 0 0 18px;
}

.task-login #login-form tr.form-group.row {
    display: block !important;
    margin: 0 0 20px !important;
}

.task-login #login-form td.title {
    display: block !important;
    height: auto;
    padding: 0 0 9px !important;
    color: #1d2b3e;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
}

.task-login #login-form td.input {
    position: relative;
    display: block !important;
    height: 56px;
    padding: 0 !important;
    border: 0;
    vertical-align: top;
}

.task-login #login-form .form-control {
    width: 100%;
    height: 56px;
    padding: 0 50px 0 52px;
    border: 0 !important;
    border-radius: 5px;
    background: #fff;
    color: #17263d;
    font-size: 16px;
    line-height: 56px;
    box-shadow: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.task-login #login-form .form-control::placeholder {
    color: #9099a6;
    opacity: 1;
}

.task-login #login-form .form-control:hover {
    background: #fff;
}

.task-login #login-form .form-control:focus {
    outline: 0;
    box-shadow: none;
}

.task-login #login-form tr:first-child td.input,
.tk-password-field {
    border: 1px solid var(--tk-border);
    border-radius: 6px;
    background: #fff;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.task-login #login-form tr:first-child td.input:hover,
.tk-password-field:hover {
    border-color: #8d9aae;
}

.task-login #login-form tr:first-child td.input:focus-within,
.tk-password-field:focus-within {
    border-color: var(--tk-focus);
    box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.16);
}

.task-login #login-form .input-group-prepend {
    position: absolute;
    z-index: 2;
    top: 1px;
    left: 1px;
    display: flex;
    width: 48px;
    height: 52px;
    margin: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
}

.task-login #login-form .input-group-text.icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #384354;
    font-size: 17px;
}

.tk-password-field {
    position: relative;
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100%;
    height: 56px;
    overflow: visible;
}

.tk-password-toggle {
    position: absolute;
    z-index: 3;
    top: 6px;
    right: 7px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0 !important;
    border-radius: 5px;
    background: transparent !important;
    color: #3c4655;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease;
}

.tk-password-toggle::before {
    content: "\f06e";
    font-family: "Font Awesome 5 Free";
    font-size: 17px;
    font-weight: 900;
}

.tk-password-toggle[aria-pressed="true"]::before {
    content: "\f070";
}

.tk-password-toggle:hover {
    background: #edf4ff !important;
    color: var(--tk-focus);
}

.tk-password-toggle:focus-visible {
    outline: 2px solid var(--tk-focus);
    outline-offset: 1px;
}

.tk-remember {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -1px 0 14px;
    color: #344256;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.tk-remember input {
    width: 19px;
    height: 19px;
    margin: 0 11px 0 0;
    accent-color: var(--tk-navy);
}

.tk-remember input:focus-visible {
    outline: 2px solid var(--tk-focus);
    outline-offset: 3px;
}

.task-login #login-form .formbuttons {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.task-login #rcmloginsubmit {
    display: block;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 0 24px;
    border: 1px solid var(--tk-navy);
    border-radius: 6px;
    background: linear-gradient(90deg, #06224f 0%, #0b3479 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(6, 34, 79, 0.16);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.task-login #rcmloginsubmit:hover {
    border-color: var(--tk-navy-hover);
    background: var(--tk-navy-hover);
    box-shadow: 0 14px 34px rgba(6, 34, 79, 0.22);
}

.task-login #rcmloginsubmit:focus-visible {
    outline: 3px solid rgba(23, 105, 224, 0.4);
    outline-offset: 3px;
}

.task-login #login-footer {
    display: none !important;
}

.tk-message {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-width: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 66% 43%, rgba(83, 150, 246, 0.72) 0, rgba(129, 180, 250, 0.42) 26%, rgba(212, 233, 255, 0.74) 63%, #f7fbff 100%),
        #eaf4ff;
}

.tk-message::before,
.tk-message::after {
    content: "";
    position: absolute;
    inset: auto;
    z-index: -1;
    width: min(55vw, 700px);
    height: min(72vh, 720px);
    border: 1px solid rgba(255, 255, 255, 0.62);
    transform: translate(27%, 2%) rotate(30deg);
}

.tk-message::after {
    width: min(40vw, 520px);
    height: min(56vh, 570px);
    transform: translate(33%, 2%) rotate(30deg);
}

.tk-geometry {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.tk-geometry span {
    position: absolute;
    right: -15%;
    top: 24%;
    width: 72%;
    height: 1px;
    background: rgba(255, 255, 255, 0.48);
    transform: rotate(-32deg);
    transform-origin: right center;
}

.tk-geometry span:nth-child(2) {
    top: 56%;
    right: -3%;
    width: 58%;
    transform: rotate(90deg);
}

.tk-geometry span:nth-child(3) {
    top: 72%;
    right: -8%;
    width: 66%;
    transform: rotate(32deg);
}

.tk-message p {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 40px;
    color: #07316c;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.025em;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.task-login #messagestack {
    z-index: 60;
}

@media (max-width: 900px) {
    body.task-login {
        overflow: auto;
    }

    .task-login #layout {
        grid-template-rows: 92px minmax(calc(100vh - 92px), auto);
    }

    .tk-brandbar {
        justify-content: center;
        height: 92px;
        padding: 8px 20px;
    }

    .tk-brandbar img {
        width: 104px;
        height: 76px;
    }

    .task-login #layout-content {
        display: block !important;
        min-height: calc(100vh - 92px);
        overflow: visible;
    }

    .tk-login-panel {
        min-height: calc(100vh - 92px);
        padding: 46px 24px 64px;
    }

    .tk-login-inner {
        max-width: 480px;
    }

    .tk-message {
        display: none;
    }
}

@media (max-width: 480px) {
    .tk-login-panel {
        align-items: flex-start;
        padding: 44px 20px 56px;
    }

    .tk-login-copy {
        margin-bottom: 30px;
    }

    .tk-login-copy h2 {
        font-size: 28px;
    }

    .task-login #login-form .form-control,
    .task-login #rcmloginsubmit {
        min-height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .task-login *,
    .task-login *::before,
    .task-login *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
