/* Signed-out pages: split screen with the warehouse photo beside the form. Matches the TMS login. */

body.ld-login {
    --ld-login-accent: #0f766e;
    --ld-login-accent-hover: #115e59;
    --ld-login-ink: #101828;
    --ld-login-label: #344054;
    --ld-login-muted: #475467;
    --ld-login-border: #d0d5dd;

    margin: 0;
    background: #ffffff;
    color: var(--ld-login-ink);
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.ld-login__shell {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

.ld-login__photo {
    flex: 1 1 auto;
    background-color: #1f2a37;
    background-image: url('../images/login-warehouse.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ld-login__panel {
    flex: 0 0 520px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 48px 72px 36px;
    background: #ffffff;
}

.ld-login__brand {
    display: flex;
    align-items: center;
    min-height: 56px;
}

.ld-login__brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ld-login__content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ld-login__footer {
    margin: 0;
    font-size: 12px;
    color: #667085;
}

.ld-login__heading {
    margin-bottom: 28px;
}

.ld-login__heading h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ld-login-ink);
}

.ld-login__heading p {
    margin: 6px 0 0;
    color: var(--ld-login-muted);
}

.ld-login label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ld-login-label);
}

.ld-login__field {
    margin-bottom: 18px;
}

.ld-login .form-control {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--ld-login-border);
    border-radius: 8px;
    box-shadow: none;
    background: #ffffff;
    font-size: 15px;
    color: var(--ld-login-ink);
}

.ld-login .form-control:focus {
    border-color: var(--ld-login-accent);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
    outline: none;
}

.ld-login__password {
    position: relative;
}

.ld-login__password .form-control {
    padding-right: 44px;
}

.ld-login__reveal {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: #667085;
}

.ld-login__reveal:hover {
    color: var(--ld-login-ink);
}

.ld-login__submit {
    width: 100%;
    height: 44px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--ld-login-accent);
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.ld-login__submit:hover,
.ld-login__submit:focus {
    background: var(--ld-login-accent-hover);
    color: #ffffff;
}

.ld-login__submit:disabled {
    opacity: 0.75;
    cursor: wait;
}

.ld-login .alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.ld-login .alert ul {
    margin: 0;
    padding-left: 18px;
}

.ld-login .alert-danger {
    border: 1px solid #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.ld-login .alert-success {
    border: 1px solid #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.ld-login .alert-info {
    border: 1px solid #b2ddff;
    background: #eff8ff;
    color: #175cd3;
}

.ld-login .alert-warning {
    border: 1px solid #fedf89;
    background: #fffaeb;
    color: #b54708;
}

@media (max-width: 900px) {
    .ld-login__shell {
        flex-direction: column;
    }

    .ld-login__photo {
        flex: 0 0 200px;
    }

    .ld-login__panel {
        position: relative;
        flex: 1 0 auto;
        gap: 24px;
        margin-top: -20px;
        padding: 28px 20px 24px;
        border-radius: 20px 20px 0 0;
    }

    .ld-login__content {
        justify-content: flex-start;
    }

    .ld-login__footer {
        text-align: center;
    }

    .ld-login .form-control,
    .ld-login__submit {
        height: 48px;
        font-size: 16px;
    }

    .ld-login__reveal {
        width: 48px;
        height: 48px;
    }
}
