body.task-login {
    min-height: 100%;
    overflow: auto;
    background: #071b2e;
}

body.task-login #layout {
    min-height: 100%;
    overflow: visible;
}

body.task-login #layout-content.hf-login-page {
    position: relative;
    display: flex;
    min-height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(28px, 6vw, 72px);
    text-align: left;
    background:
        linear-gradient(115deg, rgba(5, 19, 32, .96) 0%, rgba(8, 41, 67, .96) 47%, rgba(18, 113, 170, .9) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
    color: #ffffff;
}

body.task-login #layout-content.hf-login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 28%, transparent 72%, rgba(255, 255, 255, .1));
}

.hf-login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1040px, 100%);
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: clamp(32px, 7vw, 92px);
    align-items: center;
}

.hf-login-brand {
    max-width: 520px;
}

.hf-login-logo {
    display: block;
    width: min(312px, 76vw);
    height: auto;
    margin: 0 0 clamp(34px, 5vw, 56px);
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .22));
}

.hf-login-title {
    margin: 0;
    max-width: 12ch;
    color: #ffffff;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: 0;
}

.hf-login-subtitle {
    max-width: 470px;
    margin: 22px 0 0;
    color: rgba(238, 247, 255, .86);
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.55;
}

.hf-login-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.hf-login-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-weight: 700;
}

.hf-login-card {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
    color: #10243a;
    padding: clamp(26px, 4vw, 38px);
}

.hf-login-card-header {
    margin-bottom: 28px;
}

.hf-login-kicker {
    margin: 0 0 8px;
    color: #2789de;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hf-login-card h3 {
    margin: 0;
    color: #0e253b;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

body.task-login #login-form {
    position: static;
    top: auto;
    width: 100%;
    max-width: none;
    margin: 0;
}

body.task-login #login-form table,
body.task-login #login-form tbody {
    display: block;
    width: 100%;
}

body.task-login #login-form tr {
    display: block;
    margin: 0 0 14px;
}

body.task-login #login-form td {
    display: block;
    padding: 0;
    border: 0;
}

body.task-login #login-form td.title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

body.task-login #login-form td.input {
    position: relative;
    width: 100%;
}

body.task-login #login-form td.input.input-group {
    display: block;
}

body.task-login #login-form .input-group-prepend {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    display: flex;
    width: 50px;
    pointer-events: none;
}

body.task-login #login-form .input-group-text {
    position: relative;
    z-index: 5;
    width: 50px;
    min-height: 52px;
    justify-content: center;
    border: 0;
    border-radius: 12px 0 0 12px;
    background: transparent;
    color: #6f8092;
    padding: 0;
}

body.task-login #login-form .form-control {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d6e0ea;
    border-radius: 12px;
    background: #f8fbff;
    box-shadow: none;
    color: #0e253b;
    font-size: 15px;
    line-height: 52px;
    padding: 0 16px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.task-login #login-form .input-group .form-control {
    padding-left: 50px;
}

body.task-login #login-form .form-control::placeholder {
    color: #7a8899;
}

body.task-login #login-form .form-control:focus {
    border-color: #2789de;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(39, 137, 222, .16);
    outline: 0;
}

body.task-login #login-form .formbuttons {
    margin: 20px 0 0;
}

body.task-login #rcmloginsubmit {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1880d4 0%, #31a8ef 100%);
    box-shadow: 0 18px 32px rgba(24, 128, 212, .25);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    padding: 0 18px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body.task-login #rcmloginsubmit:focus,
body.task-login #rcmloginsubmit:hover {
    background: linear-gradient(135deg, #0f74c7 0%, #209ee8 100%);
    box-shadow: 0 20px 36px rgba(24, 128, 212, .34);
    color: #ffffff;
    outline: 0;
    transform: translateY(-1px);
}

body.task-login #rcmloginsubmit:active {
    transform: translateY(0);
}

body.task-login #rcmloginsubmit::before {
    display: none !important;
}

.hf-login-meta {
    display: block;
    margin-top: 22px;
    color: #6f8092;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.hf-login-meta a {
    color: #2789de;
}

.hf-login-support-separator {
    margin: 0 7px;
    color: #a4afba;
}

html.dark-mode body.task-login #layout-content.hf-login-page {
    background:
        linear-gradient(115deg, rgba(5, 19, 32, .98) 0%, rgba(8, 41, 67, .98) 47%, rgba(18, 113, 170, .92) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
}

html.dark-mode .hf-login-card {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(13, 29, 45, .94);
    color: #e9f3fb;
}

html.dark-mode .hf-login-card h3 {
    color: #ffffff;
}

html.dark-mode body.task-login #login-form .form-control {
    border-color: rgba(175, 200, 220, .28);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

html.dark-mode body.task-login #login-form .form-control:focus {
    border-color: #51b8ff;
    background: rgba(255, 255, 255, .12);
}

html.dark-mode .hf-login-meta {
    color: rgba(233, 243, 251, .68);
}

@media screen and (max-width: 860px) {
    body.task-login #layout-content.hf-login-page {
        align-items: flex-start;
        min-height: 100%;
    }

    .hf-login-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 470px;
    }

    .hf-login-brand {
        max-width: none;
        text-align: center;
    }

    .hf-login-logo {
        margin-right: auto;
        margin-bottom: 24px;
        margin-left: auto;
    }

    .hf-login-title {
        max-width: none;
        font-size: clamp(34px, 9vw, 48px);
    }

    .hf-login-subtitle {
        margin-right: auto;
        margin-left: auto;
    }

    .hf-login-chips {
        justify-content: center;
        margin-top: 24px;
    }
}

@media screen and (max-width: 520px) {
    body.task-login #layout-content.hf-login-page {
        padding: 24px 16px;
    }

    .hf-login-logo {
        width: min(236px, 78vw);
    }

    .hf-login-subtitle {
        font-size: 15px;
    }

    .hf-login-chips {
        display: none;
    }

    .hf-login-card {
        border-radius: 16px;
        padding: 24px 20px;
    }

    .hf-login-card-header {
        margin-bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.task-login #login-form .form-control,
    body.task-login #rcmloginsubmit {
        transition: none;
    }

    body.task-login #rcmloginsubmit:focus,
    body.task-login #rcmloginsubmit:hover {
        transform: none;
    }
}
