/* Login entrance matching the graphite-blue admin workspace. */
.login-page {
    min-height: 100dvh;
    overflow-x: hidden;
    background: #2b3139 !important;
    color: #f2f5f8;
    color-scheme: dark;
}

.login-layout {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: minmax(360px, 42%) minmax(0, 1fr);
    background: #2b3139;
}

.login-brand-panel {
    position: relative;
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(34px, 5vw, 76px);
    border-right: 1px solid #3970bb;
    background: #174a9c;
    color: #fff;
}

.login-brand-mark {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.login-brand-mark > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 6px;
    background: #215bb2;
    color: #fff;
    font-size: 1.18rem;
}

.login-brand-mark strong {
    color: #fff;
    font-weight: 700;
}

.login-brand-copy {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin: auto 0;
    padding: 70px 0;
}

.login-brand-copy small {
    display: block;
    margin-bottom: 14px;
    color: #b8d2fa;
    font-size: 0.78rem;
    font-weight: 650;
}

.login-page .login-brand-copy h1 {
    max-width: 440px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.2vw, 3.35rem);
    font-weight: 740;
    line-height: 1.16;
}

.login-brand-copy p {
    margin: 18px 0 0;
    color: #d1e1fa;
    font-size: 0.96rem;
}

.login-brand-status {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #d6e5fb;
    font-size: 0.75rem;
}

.login-brand-status > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.login-brand-status > span:first-child > i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #48d597;
}

.login-brand-status .bi {
    color: #bcd4f8;
    font-size: 0.9rem;
}

.login-geometry {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-geometry span {
    position: absolute;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-geometry span:nth-child(1) {
    right: -150px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    transform: rotate(14deg);
}

.login-geometry span:nth-child(2) {
    right: 12%;
    bottom: 8%;
    width: 220px;
    height: 220px;
    transform: rotate(14deg);
}

.login-geometry span:nth-child(3) {
    top: 20%;
    right: -80px;
    width: 260px;
    height: 1px;
    border-width: 1px 0 0;
    transform: rotate(-24deg);
}

.login-geometry span:nth-child(4) {
    top: 33%;
    right: 14%;
    width: 58px;
    height: 58px;
    transform: rotate(14deg);
}

.login-form-panel {
    position: relative;
    display: grid;
    min-width: 0;
    place-items: center;
    padding: 48px clamp(24px, 7vw, 110px);
    background: #2b3139;
}

.login-form-panel::before {
    position: absolute;
    top: 9%;
    bottom: 9%;
    left: 0;
    width: 1px;
    background: #414b58;
    content: "";
}

.login-form-wrap {
    width: min(100%, 420px);
}

.login-form-wrap > header {
    margin-bottom: 30px;
}

.login-form-wrap > header > span {
    display: block;
    margin-bottom: 8px;
    color: #6fa1ff;
    font-size: 0.76rem;
    font-weight: 680;
}

.login-page .login-form-wrap h2 {
    margin: 0;
    color: #f3f6fa;
    font-size: 1.8rem;
    font-weight: 730;
}

.login-form-wrap > header p {
    margin: 9px 0 0;
    color: #9da8b6;
    font-size: 0.86rem;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 18px;
    padding: 11px 12px;
    border: 1px solid #41638c;
    border-radius: 6px;
    background: #2f4156;
    color: #d7e6fa;
    font-size: 0.8rem;
    line-height: 1.45;
}

.login-alert-error {
    border-color: #825056;
    background: #4a3439;
    color: #ffdadd;
}

.login-alert i {
    flex: 0 0 auto;
    margin-top: 1px;
}

.login-field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.login-field label {
    color: #dce2e9;
    font-size: 0.82rem;
    font-weight: 620;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    color: #8f9ba9;
    font-size: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 15px 0 44px;
    border: 1px solid #505b68;
    border-radius: 6px;
    outline: 0;
    background: #353c46;
    color: #f2f5f8;
    font-size: 0.92rem;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.login-input-wrap input::placeholder {
    color: #8994a2;
    opacity: 1;
}

.login-input-wrap input:hover {
    border-color: #617083;
    background: #39414c;
}

.login-input-wrap input:focus {
    border-color: #4d83eb;
    background: #39414c;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.18);
}

.login-submit {
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px;
    padding: 0 18px;
    border: 1px solid #3979ef;
    border-radius: 6px;
    background: #2f6fed;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 680;
    transition: background-color 140ms ease, border-color 140ms ease, transform 100ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    border-color: #4a86f5;
    background: #255fce;
}

.login-submit:active {
    transform: translateY(1px);
}

.login-form-wrap > footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    color: #788493;
    font-size: 0.7rem;
    white-space: nowrap;
}

.login-form-wrap > footer span {
    width: 100%;
    height: 1px;
    background: #46505d;
}

@media (max-width: 767.98px) {
    .login-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .login-brand-panel {
        min-height: 205px;
        padding: 22px 20px;
        border-right: 0;
        border-bottom: 1px solid #3970bb;
    }

    .login-brand-mark > span {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .login-brand-copy {
        margin: 0;
        padding: 25px 0 22px;
    }

    .login-brand-copy small {
        margin-bottom: 7px;
        font-size: 0.7rem;
    }

    .login-page .login-brand-copy h1 {
        font-size: 1.75rem;
    }

    .login-brand-copy p {
        margin-top: 8px;
        font-size: 0.8rem;
    }

    .login-brand-status {
        gap: 14px;
        font-size: 0.68rem;
    }

    .login-form-panel {
        min-height: calc(100dvh - 205px);
        place-items: start center;
        padding: 30px 20px 34px;
    }

    .login-form-panel::before {
        top: 0;
        right: 20px;
        bottom: auto;
        left: 20px;
        width: auto;
        height: 1px;
    }

    .login-form-wrap > header {
        margin-bottom: 24px;
    }

    .login-page .login-form-wrap h2 {
        font-size: 1.55rem;
    }

    .login-input-wrap input,
    .login-submit {
        height: 50px;
    }

    .login-form-wrap > footer {
        margin-top: 28px;
    }
}

@media (max-width: 380px) {
    .login-brand-panel {
        min-height: 190px;
        padding: 18px 16px;
    }

    .login-brand-copy {
        padding: 18px 0 15px;
    }

    .login-brand-copy p,
    .login-brand-status > span:last-child {
        display: none;
    }

    .login-form-panel {
        min-height: calc(100dvh - 190px);
        padding: 25px 16px 28px;
    }
}
